class_docstr: Resize the short side of an image to given size, and then scale the other side proportionally.
  
  Args:
      short_size (int): The target size of short side.
class_docstr_tok: ["Resize","the","short","side","of","an","image","to","given","size",",","and","then","scale","the","other","side","proportionally",".","Args",":","short_size","(","int",")",":","The","target","size","of","short","side","."]
code: def __init__(self, short_size: int = 512):
      self.short_size = short_size
  
imports: import random
  import base64
  from typing import Callable, Union, List, Tuple
  import cv2
  import numpy
  import paddle
  import paddle.nn.functional
  from paddleseg.transforms import functional
  from PIL import Image
label_desc: Use image node_id 1 to create a new ResizeByShort object  with example: obj = ResizeByShort(short_size)