code: def crop(img, crop_coordinate):
      x1, y1, x2, y2 = crop_coordinate
      img = img[y1:y2, x1:x2, ...]
      return img
  
imports: import cv2
  import numpy
  from PIL import Image, ImageEnhance
  from scipy.ndimage import distance_transform_edt
label_desc: Use image node_id 1 for calling a global function with example usage: crop(img, crop_coordinate) and returns: img