code: def rotation_y(theta, degrees=True):
      if degrees:
          # convert to radians
          theta = theta * np.pi / 180.0
      return Rotation(
          np.array(
              [
                  [np.cos(theta), 0, np.sin(theta)],
                  [0, 1, 0],
                  [-np.sin(theta), 0, np.cos(theta)],
              ]
          ),
          skip_checks=True,
      )
  
file_path: insightface/reconstruction/ostec/utils/image_rasterization.py
imports: from menpo3d.rasterize import rasterize_barycentric_coordinate_images, rasterize_mesh_from_barycentric_coordinate_images
  from menpo.transform import Rotation, Translation, Scale
  from menpo3d.camera import PerspectiveProjection, PerspectiveCamera
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: rotation_y(theta, degrees) and returns: Rotation