code: def images_cityscape(data, num, img_file):
      image = {}
      image["height"] = data["imgHeight"]
      image["width"] = data["imgWidth"]
      image["id"] = num + 1
      image["file_name"] = img_file
      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 2 for calling a global function with example usage: images_cityscape(data, num, img_file) and returns: image