code: def crop_image(image, target_size):
      (
          top_crop,
          right_crop,
          bottom_crop,
          left_crop,
      ) = get_crop_pad_sequence(
          image.shape[0] - target_size[0],
          image.shape[1] - target_size[1],
      )
      cropped_image = image[
          top_crop : image.shape[0] - bottom_crop,
          left_crop : image.shape[1] - right_crop,
      ]
      return cropped_image
  
file_path: nni/examples/trials/kaggle-tgs-salt/postprocessing.py
imports: import os
  import numpy
  import pandas
  from scipy import ndimage
  import cv2
  from utils import get_crop_pad_sequence, run_length_decoding
  import settings
label_desc: Use image node_id 2 for calling a global function with example usage: crop_image(image, target_size) and returns: cropped_image