code: def resize_and_crop_batch(frames, dim):
      """
      Center crop + resize to (dim x dim)
      inputs:
          - frames: list of images (numpy arrays)
          - dim: output dimension size
      """
      smframes = []
      xshift, yshift = 0, 0
      for i in range(len(frames)):
          smframe, (xshift, yshift) = resize_and_crop_image(
              frames[i], dim
          )
          smframes.append(smframe)
      smframes = np.stack(smframes)
      return smframes, (xshift, yshift)
  
imports: import cv2
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: resize_and_crop_batch(frames, dim) and returns: smframes,  xshift,  yshift