code: def norm_crop2(img, landmark, image_size=112, mode="arcface"):
      M = estimate_norm(landmark, image_size, mode)
      warped = cv2.warpAffine(
          img, M, (image_size, image_size), borderValue=0.0
      )
      return warped, 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 3 for calling a global function with example usage: norm_crop2(img, landmark, image_size, mode) and returns: warped,  M