code: def trans_points(pts, M):
      if pts.shape[1] == 2:
          return trans_points2d(pts, M)
      else:
          return trans_points3d(pts, M)
  
file_path: insightface/python-package/insightface/utils/transform.py
imports: import cv2
  import math
  import numpy
  from skimage import transform
label_desc: Use image node_id 4 for calling a global function with example usage: trans_points(pts, M) and returns: trans_points2d, trans_points3d