code: def rotate(vertices, angles):
      """rotate vertices.
      X_new = R.dot(X). X: 3 x 1
      Args:
          vertices: [nver, 3].
          rx, ry, rz: degree angles
          rx: pitch. positive for looking down
          ry: yaw. positive for looking left
          rz: roll. positive for tilting head right
      Returns:
          rotated vertices: [nver, 3]
      """
      R = angle2matrix(angles)
      rotated_vertices = vertices.dot(R.T)
  
      return rotated_vertices
  
file_path: insightface/python-package/insightface/thirdparty/face3d/mesh_numpy/transform.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import math
  from math import cos, sin
label_desc: Use image node_id 3 for calling a global function with example usage: rotate(vertices, angles) and returns: rotated_vertices