class_docstr: Resize the shortest edge to a certain number while
  keeping the aspect ratio.
code: def get_transform(self, img):
      h, w = img.shape[:2]
      scale = self.size * 1.0 / min(h, w)
      if h < w:
          newh, neww = self.size, int(scale * w + 0.5)
      else:
          newh, neww = int(scale * h + 0.5), self.size
      return ResizeTransform(h, w, newh, neww, self.interp)
  
imports: import cv2
  from ...utils import logger
  from ...utils.argtools import shape2d
  from .base import ImageAugmentor
  from .transform import ResizeTransform, NoOpTransform, FlipTransform, TransposeTransform
label_desc: Use image node_id 2 for calling the ResizeShortestEdge obj's underlying member method code with example usage: obj.get_transform(img) and returns: ResizeTransform