code: def transform_pt(pt, trans):
      new_pt = np.array([pt[0], pt[1], 1.0]).T
      new_pt = np.dot(trans, new_pt)
      # print('new_pt', new_pt.shape, new_pt)
      return new_pt[:2]
  
file_path: insightface/alignment/heatmap/img_helper.py
imports: import numpy
  import math
  import cv2
  from skimage import transform
label_desc: Use image node_id 2 for calling a global function with example usage: transform_pt(pt, trans) and returns: new_pt