code: def norm_crop(img, landmark, image_size=112, mode="arcface"):
      M, pose_index = estimate_norm(landmark, image_size, mode)
      warped = cv2.warpAffine(
          img, M, (image_size, image_size), borderValue=0.0
      )
      return warped
  
imports: import cv2
  import numpy
  from skimage import transform
label_desc: Use image node_id 2 for calling a global function with example usage: norm_crop(img, landmark, image_size, mode) and returns: warped