code: def rescale_bboxes(
      bboxes: np.ndarray,
      scale_factor: Tuple[int, int],
      mode: str = "mul",
  ) -> np.ndarray:
      """Rescale bboxes according to scale_factor.
  
      The behavior is different depending on the mode. When mode is 'mul', the
      coordinates will be multiplied by scale_factor, which is usually used in
      preprocessing transforms such as :func:`Resize`.
      The coordinates will be divided by scale_factor if mode is 'div'. It can be
      used in postprocessors to recover the bboxes in the original
      image size.
  
      Args:
          bboxes (np.ndarray]): Bounding bboxes in shape (N, 4)
          scale_factor (tuple(int, int)): (w_scale, h_scale).
          model (str): Rescale mode. Can be 'mul' or 'div'. Defaults to 'mul'.
  
      Returns:
          list[np.ndarray]: Rescaled bboxes.
      """
      bboxes = rescale_bbox(bboxes, scale_factor, mode)
      return bboxes
  
file_path: mmocr/mmocr/utils/bbox_utils.py
imports: from typing import List, Tuple
  import numpy
  from shapely.geometry import LineString, Point
  from mmocr.utils.check_argument import is_type_list
  from mmocr.utils.point_utils import point_distance, points_center
  from mmocr.utils.typing_utils import ArrayLike
label_desc: Use image node_id 2 for calling a global function with example usage: rescale_bboxes(bboxes, scale_factor, mode) and returns: bboxes