code: def bbox_mapping(
      bboxes, img_shape, scale_factor, flip, flip_direction="horizontal"
  ):
      """Map bboxes from the original image scale to testing scale."""
      new_bboxes = bboxes * bboxes.new_tensor(scale_factor)
      if flip:
          new_bboxes = bbox_flip(new_bboxes, img_shape, flip_direction)
      return new_bboxes
  
file_path: insightface/detection/scrfd/mmdet/core/bbox/transforms.py
imports: import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: bbox_mapping(bboxes, img_shape, scale_factor, flip, flip_direction) and returns: new_bboxes