code: def parse_args():
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter
      )
      parser.add_argument("input_dir", help="input annotated directory")
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/QualityInspector/tools/dataset/labelme2seg.py
imports: from __future__ import print_function
  import argparse
  import glob
  import math
  import json
  import os
  import os.path
  import numpy
  import PIL.Image
  import PIL.ImageDraw
  import cv2
  from tools.data.gray2pseudo_color import get_color_map_list
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser