code: def parse_args():
      parser = argparse.ArgumentParser(
          description="PaddleSeg generate file list on cityscapes or your customized dataset."
      )
      parser.add_argument(
          "dataset_root", help="dataset root directory", type=str
      )
      parser.add_argument(
          "--type",
          help="dataset type: \n" "- cityscapes \n" "- custom(default)",
          default="custom",
          type=str,
      )
      parser.add_argument(
          "--separator",
          dest="separator",
          help="file list separator",
          default=" ",
          type=str,
      )
      parser.add_argument(
          "--folder",
          help="the folder names of images and labels",
          type=str,
          nargs=2,
          default=["images", "annotations"],
      )
      parser.add_argument(
          "--second_folder",
          help="the second-level folder names of train set, validation set, test set",
          type=str,
          nargs="*",
          default=["train", "val", "test"],
      )
      parser.add_argument(
          "--format",
          help="data format of images and labels, e.g. jpg or png.",
          type=str,
          nargs=2,
          default=["jpg", "png"],
      )
      parser.add_argument(
          "--postfix",
          help="postfix of images or labels",
          type=str,
          nargs=2,
          default=["", ""],
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/tools/data/create_dataset_list.py
imports: import glob
  import os.path
  import argparse
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser