code: def get_crops(xyxy, ori_img, w, h):
      crops = []
      xyxy = xyxy.astype(np.int64)
      ori_img = ori_img.transpose(1, 0, 2)  # [h,w,3]->[w,h,3]
      for i, bbox in enumerate(xyxy):
          crop = ori_img[bbox[0] : bbox[2], bbox[1] : bbox[3], :]
          crops.append(crop)
      crops = preprocess_reid(crops, w, h)
      return crops
  
imports: import os
  import cv2
  import time
  import numpy
  import collections
  import math
label_desc: Use image node_id 5 for calling a global function with example usage: get_crops(xyxy, ori_img, w, h) and returns: crops