code: def resize(im, target_size=608, interp=cv2.INTER_LINEAR):
      if isinstance(target_size, list) or isinstance(
          target_size, tuple
      ):
          w = target_size[0]
          h = target_size[1]
      else:
          w = target_size
          h = target_size
      im = cv2.resize(im, (w, h), interpolation=interp)
      return im
  
imports: import cv2
  import numpy
  from PIL import Image, ImageEnhance
  from scipy.ndimage import distance_transform_edt
label_desc: Use image node_id 4 for calling a global function with example usage: resize(im, target_size, interp) and returns: im