class_docstr: First rescale the image for its shorter side to reach the short_size and
  then jitter its aspect ratio, final rescale the shape guaranteed to be
  divided by scale_divisor.
  
  Required Keys:
  
  - img
  - img_shape
  - gt_bboxes (optional)
  - gt_polygons (optional)
  
  
  Modified Keys:
  
  - img
  - img_shape
  - gt_bboxes (optional)
  - gt_polygons (optional)
  
  Added Keys:
  
  - scale
  - scale_factor
  - keep_ratio
  
  Args:
      short_size (int): Target shorter size before jittering the aspect
          ratio. Defaults to 736.
      short_size_jitter_range (tuple(float, float)): Range of the ratio used
          to jitter the target shorter size. Defaults to (0.7, 1.3).
      aspect_ratio_jitter_range (tuple(float, float)): Range of the ratio
          used to jitter its aspect ratio. Defaults to (0.9, 1.1).
      scale_divisor (int): The scale divisor. Defaults to 1.
      resize_type (str): The type of resize class to use. Defaults to
          "Resize".
      **resize_kwargs: Other keyword arguments for the ``resize_type``.
code: def __init__(
      self,
      short_size: int = 736,
      ratio_range: Tuple[float, float] = (0.7, 1.3),
      aspect_ratio_range: Tuple[float, float] = (0.9, 1.1),
      scale_divisor: int = 1,
      resize_type: str = "Resize",
      **resize_kwargs,
  ) -> None:
      super().__init__()
      self.short_size = short_size
      self.ratio_range = ratio_range
      self.aspect_ratio_range = aspect_ratio_range
      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)
      self.scale_divisor = scale_divisor
  
imports: import math
  import random
  from typing import Dict, List, Sequence, Tuple, Union
  import cv2
  import mmcv
  import numpy
  from mmcv.transforms import RandomFlip
  from mmcv.transforms.base import BaseTransform
  from mmcv.transforms.utils import avoid_cache_randomness, cache_randomness
  from shapely.geometry import Polygon
  from mmocr.registry import TRANSFORMS
  from mmocr.utils import crop_polygon, poly2bbox, poly_intersection
label_desc: Use image node_id 1 to create a new ShortScaleAspectJitter object from inherited base classes: BaseTransform with example: obj = ShortScaleAspectJitter(short_size, ratio_range, aspect_ratio_range, scale_divisor, resize_type)