code: def get_resize_sizes(im_h, im_w, size):
      if im_w < im_h:
          ow = size
          oh = int(size * im_h / im_w)
      else:
          oh = size
          ow = int(size * im_w / im_h)
      return oh, ow
  
file_path: gluon-cv/gluoncv/torch/data/transforms/videotransforms/functional.py
imports: import numbers
  import cv2
  import numpy
  import PIL
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: get_resize_sizes(im_h, im_w, size) and returns: oh,  ow