Spatial-rotation-transformation Python function. transform the rotation expression from rotation matrix/ euler/ quaternion