code: def resize_bbox(box, image_w=None, image_h=None):
      ratio_w = image_w * 1.0 / VOCAB_IMAGE_W
      ratio_h = image_h * 1.0 / VOCAB_IMAGE_H
  
      new_box = [
          int(box[0] * ratio_w),
          int(box[1] * ratio_h),
          int(box[2] * ratio_w),
          int(box[3] * ratio_h),
      ]
      return new_box
  
file_path: ml-ferret/ferret/eval/eval_refexp.py
imports: import os
  import copy
  from collections import defaultdict
  from pathlib import Path
  from tqdm import tqdm
  import torch
  import torch.utils.data
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  from prettytable import PrettyTable
  import re
  import json
  from misc.refcoco.box_ops import generalized_box_iou, box_iou
label_desc: Use image node_id 1 for calling a global function with example usage: resize_bbox(box, image_w, image_h) and returns: new_box