code: def categories(label, labels_list):
      category = {}
      category["supercategory"] = "component"
      category["id"] = len(labels_list) + 1
      category["name"] = label
      return category
  
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 3 for calling a global function with example usage: categories(label, labels_list) and returns: category