code: def parse_args():
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter
      )
      parser.add_argument(
          "dir_or_file",
          help="input gray label directory or file list path",
      )
      parser.add_argument(
          "output_dir", help="output colorful label directory"
      )
      parser.add_argument("--dataset_dir", help="dataset directory")
      parser.add_argument(
          "--file_separator", help="file list separator"
      )
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/QualityInspector/tools/dataset/gray2pseudo_color.py
imports: from __future__ import print_function
  import argparse
  import os
  import os.path
  import sys
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser