code: def parse_args():
      parser = argparse.ArgumentParser(
          description="A tool for proportionally randomizing dataset to produce file lists."
      )
      parser.add_argument(
          "dataset_root", help="the dataset root path", type=str
      )
      parser.add_argument(
          "images_dir_name",
          help="the directory name of images",
          type=str,
      )
      parser.add_argument(
          "labels_dir_name",
          help="the directory name of labels",
          type=str,
      )
      parser.add_argument(
          "--split", help="", nargs=3, type=float, default=[0.7, 0.3, 0]
      )
      parser.add_argument(
          "--separator",
          dest="separator",
          help="file list separator",
          default=" ",
          type=str,
      )
      parser.add_argument(
          "--format",
          help="data format of images and labels, e.g. jpg, tif 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/split_dataset_list.py
imports: import glob
  import os.path
  import argparse
  import warnings
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser