code: def __init__(
      self,
      short_side_lens,
      long_side_bound,
      resize_type: str = "Resize",
      **resize_kwargs,
  ):
      self.short_side_lens = short_side_lens
      self.long_side_bound = long_side_bound
      self.resize_cfg = dict(type=resize_type, **resize_kwargs)
  
      # create a empty Reisize object
      self.resize_cfg.update(dict(scale=0))
      self.resize = TRANSFORMS.build(self.resize_cfg)
  
imports: import random
  from typing import Dict
  import numpy
  from mmcv.transforms.base import BaseTransform
  from mmocr.datasets.transforms import LoadOCRAnnotations
  from mmocr.registry import TASK_UTILS, TRANSFORMS
  from mmocr.utils import bezier2poly, poly2bezier
label_desc: Use image node_id 1 to create a new RescaleToShortSide object from inherited base classes: BaseTransform with example: obj = RescaleToShortSide(short_side_lens, long_side_bound, resize_type)