code: def main():
      args = parse_args()
      imgid2imgname, imgid2anno = parse_coco_json(args.in_path)
      gen_line_dict_file(args.out_path, imgid2imgname, imgid2anno)
      print("finish")
  
imports: import argparse
  import json
  import mmengine
  from mmocr.utils import list_to_file
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types