code: def revert_rescale_bboxes(
      out_bbox: "torch.Tensor", size: Tuple[int, int]
  ):
      """
      Adapted from DETR source: https://github.com/facebookresearch/detr
      (inference notebook)
  
      This method reverts bounding box rescaling to match input image size
      """
  
      img_w, img_h = size
      box = out_bbox / torch.tensor(
          [img_w, img_h, img_w, img_h], dtype=torch.float32
      ).to(out_bbox.device)
      box = box_xyxy_to_cxcywh(box)
      return box
  
imports: from typing import List, Optional, Tuple, Union
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: revert_rescale_bboxes(out_bbox, size) and returns: box