code: def CenterCrop(batch_img, size):
      w, h = batch_img[0][0].shape[1], batch_img[0][0].shape[0]
      th, tw = size
      img = np.zeros((len(batch_img), len(batch_img[0]), th, tw))
      for i in range(len(batch_img)):
          x1 = int(round((w - tw)) / 2.0)
          y1 = int(round((h - th)) / 2.0)
          img[i] = batch_img[i, :, y1 : y1 + th, x1 : x1 + tw]
      return img
  
imports: import random
  import cv2
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: CenterCrop(batch_img, size) and returns: img