code: def parse_args():
      parser = argparse.ArgumentParser(description="Model evaluation")
  
      # params of evaluate
      parser.add_argument(
          "--config",
          dest="cfg",
          help="The config file.",
          default=None,
          type=str,
      )
  
      parser.add_argument(
          "--model_path",
          dest="model_path",
          help="The path of model for evaluation",
          type=str,
          default="saved_model/vnet_lung_coronavirus_128_128_128_15k/best_model/model.pdparams",
      )
  
      parser.add_argument(
          "--save_dir",
          dest="save_dir",
          help="The path to save result",
          type=str,
          default="saved_model/vnet_lung_coronavirus_128_128_128_15k/best_model",
      )
  
      parser.add_argument(
          "--num_workers",
          dest="num_workers",
          help="Num workers for data loader",
          type=int,
          default=0,
      )
  
      parser.add_argument(
          "--print_detail",  # the dest cannot have space in it
          help="Whether to print evaluate values",
          type=bool,
          default=True,
      )
  
      parser.add_argument(
          "--use_vdl",
          help="Whether to use visualdl to record result images",
          type=bool,
          default=True,
      )
  
      parser.add_argument(
          "--auc_roc",
          help="Whether to use auc_roc metric",
          type=bool,
          default=False,
      )
  
      parser.add_argument(
          "--sw_num", default=None, type=int, help="sw_num"
      )
  
      parser.add_argument(
          "--is_save_data", default=True, type=eval, help="warmup"
      )
  
      parser.add_argument(
          "--has_dataset_json",
          default=True,
          type=eval,
          help="has_dataset_json",
      )
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/MedicalSeg/val.py
imports: import argparse
  import os
  import paddle
  from medicalseg.cvlibs import Config
  from medicalseg.core import evaluate
  from medicalseg.utils import get_sys_env, logger, utils
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser