code: def center_crop_and_resize(
      image, image_size, crop_padding=32, interpolation="bicubic"
  ):
      assert image.ndim in {2, 3}
      assert interpolation in MAP_INTERPOLATION_TO_ORDER.keys()
  
      h, w = image.shape[:2]
  
      padded_center_crop_size = int(
          (image_size / (image_size + crop_padding)) * min(h, w)
      )
      offset_height = ((h - padded_center_crop_size) + 1) // 2
      offset_width = ((w - padded_center_crop_size) + 1) // 2
  
      image_crop = image[
          offset_height : padded_center_crop_size + offset_height,
          offset_width : padded_center_crop_size + offset_width,
      ]
      resized_image = resize(
          image_crop,
          (image_size, image_size),
          order=MAP_INTERPOLATION_TO_ORDER[interpolation],
          preserve_range=True,
      )
  
      return resized_image
  
label_desc: Use image node_id 1 for calling a global function with example usage: center_crop_and_resize(image, image_size, crop_padding, interpolation) and returns: resized_image