code: def resize_image(img, short_size):
      height, width, _ = img.shape
      if height < width:
          new_height = short_size
          new_width = new_height / height * width
      else:
          new_width = short_size
          new_height = new_width / width * height
      new_height = int(round(new_height / 32) * 32)
      new_width = int(round(new_width / 32) * 32)
      resized_img = cv2.resize(img, (new_width, new_height))
      return resized_img, (new_width / width, new_height / height)
  
imports: import math
  import numbers
  import random
  import cv2
  import numpy
  from skimage.util import random_noise
label_desc: Use image node_id 1 for calling a global function with example usage: resize_image(img, short_size) and returns: resized_img,  unknown,  unknown