docstr: Resize image.
  
  Args:
      results (dict): Result dict containing the data to transform.
  
  Returns:
      Optional[dict]: The transformed data. If all the polygons are
      unfixable, return None.
docstr_tok: ["Resize","image",".","Args",":","results","(","dict",")",":","Result","dict","containing","the","data","to","transform",".","Returns",":","Optional","[","dict","]",":","The","transformed","data",".","If","all","the","polygons","are","unfixable",",","return","None","."]
code: def transform(self, results: Dict) -> Dict:
      """Resize image.
  
      Args:
          results (dict): Result dict containing the data to transform.
  
      Returns:
          Optional[dict]: The transformed data. If all the polygons are
          unfixable, return None.
      """
      short_len = random.choice(self.short_side_lens)
      new_h, new_w = self.get_size_with_aspect_ratio(
          results["img_shape"], short_len, self.long_side_bound
      )
      self.resize.scale = (new_w, new_h)
      return self.resize(results)
  
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 2 for calling the RescaleToShortSide obj's underlying member method code with example usage: obj.transform(results) and returns: self