code: def images_labelme(data, num):
      image = {}
      image["height"] = data["imageHeight"]
      image["width"] = data["imageWidth"]
      image["id"] = num + 1
      if "\\" in data["imagePath"]:
          image["file_name"] = data["imagePath"].split("\\")[-1]
      else:
          image["file_name"] = data["imagePath"].split("/")[-1]
      return image
  
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 1 for calling a global function with example usage: images_labelme(data, num) and returns: image