code: def estimate_norm(lmk, image_size=112, mode="arcface"):
      assert lmk.shape == (5, 2)
      assert image_size % 112 == 0 or image_size % 128 == 0
      if image_size % 112 == 0:
          ratio = float(image_size) / 112.0
          diff_x = 0
      else:
          ratio = float(image_size) / 128.0
          diff_x = 8.0 * ratio
      dst = arcface_dst * ratio
      dst[:, 0] += diff_x
      tform = trans.SimilarityTransform()
      tform.estimate(lmk, dst)
      M = tform.params[0:2, :]
      return M
  
file_path: insightface/python-package/insightface/utils/face_align.py
imports: import cv2
  import numpy
  from skimage import transform
label_desc: Use image node_id 1 for calling a global function with example usage: estimate_norm(lmk, image_size, mode) and returns: M