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