code: def resize_image(input_image, resolution):
      H, W, C = input_image.shape
      H = float(H)
      W = float(W)
      k = float(resolution) / min(H, W)
      H *= k
      W *= k
      H = int(np.round(H / 64.0)) * 64
      W = int(np.round(W / 64.0)) * 64
      img = cv2.resize(
          input_image,
          (W, H),
          interpolation=cv2.INTER_LANCZOS4 if k > 1 else cv2.INTER_AREA,
      )
      return img
  
imports: import numpy
  import cv2
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: resize_image(input_image, resolution) and returns: img