code: def rescale_bboxes(out_bbox: "torch.Tensor", size: Tuple[int, int]):
      """
      From DETR source: https://github.com/facebookresearch/detr
      (inference notebook)
      """
  
      img_w, img_h = size
      box = box_cxcywh_to_xyxy(out_bbox)
      box = box * torch.tensor(
          [img_w, img_h, img_w, img_h], dtype=torch.float32
      )
      return box
  
imports: from typing import List, Optional, Tuple, Union
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: rescale_bboxes(out_bbox, size) and returns: box