code: def voc_get_image_info(annotation_root, im_id):
      filename = annotation_root.findtext("filename")
      assert filename is not None
      img_name = os.path.basename(filename)
  
      size = annotation_root.find("size")
      width = float(size.findtext("width"))
      height = float(size.findtext("height"))
  
      image_info = {
          "file_name": filename,
          "height": height,
          "width": width,
          "id": im_id,
      }
      return image_info
  
imports: import argparse
  import glob
  import json
  import os
  import os.path
  import shutil
  import xml.etree.ElementTree
  import numpy
  import PIL.ImageDraw
  from tqdm import tqdm
  import cv2
label_desc: Use image node_id 9 for calling a global function with example usage: voc_get_image_info(annotation_root, im_id) and returns: image_info