code: def rotate_points_tensor(points, image, angle):
      s = tf.shape(image)
      image_center = tf.to_float(s[:2]) / 2.0
  
      # center coordinates since rotation center is supposed to be in the image center
      points_centered = points - image_center
  
      rot_matrix = tf.dynamic_stitch(
          [[0], [1], [2], [3]],
          [tf.cos(angle), -tf.sin(angle), tf.sin(angle), tf.cos(angle)],
      )
      rot_matrix = tf.reshape(rot_matrix, shape=[2, 2])
  
      points_centered_rot = tf.matmul(
          rot_matrix, tf.transpose(points_centered)
      )
  
      return tf.transpose(points_centered_rot) + image_center
  
file_path: insightface/reconstruction/ostec/external/landmark_detector/data_provider.py
imports: import tensorflow
  import numpy
  from menpo.transform import Translation
  from external.landmark_detector.flags import FLAGS
label_desc: Use image node_id 2 for calling a global function with example usage: rotate_points_tensor(points, image, angle) and returns: unknown