code: def parse_args():
      """Parse arguments"""
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--json_path",
          type=str,
          help="The path of coco format json file.",
      )
      parser.add_argument(
          "--root_path",
          type=str,
          default="",
          help="The directory of images, default None if the path of images is absolute path in json file.",
      )
      parser.add_argument(
          "--save_path",
          type=str,
          default="./show/",
          help="The directory for saving visualization result.",
      )
      return parser.parse_args()
  
imports: import argparse
  import os
  import os.path
  from PIL import Image, ImageDraw
  from pycocotools.coco import COCO
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser