code: def gen_labelTrainIds(json_file):
      label_file = json_file.replace(
          "_polygons.json", "_labelTrainIds.png"
      )
      json2labelImg(json_file, label_file, "trainIds")
  
file_path: PaddleSeg/tools/data/convert_cityscapes.py
imports: import os
  import argparse
  from multiprocessing import Pool, cpu_count
  import glob
  from cityscapesscripts.preparation.json2labelImg import json2labelImg
label_desc: Use image node_id 2 for calling a global function with example usage: gen_labelTrainIds(json_file) without return types