code: def generate_args_parser():
      parser = argparse.ArgumentParser()
      parser.add_argument("id", nargs="?")
      parser.add_argument("--port", "-p", type=int, dest="port")
      parser.add_argument("--all", "-a", action="store_true")
      parser.add_argument("--head", type=int)
      parser.add_argument("--tail", type=int)
      return parser
  
file_path: nni/test/ut/tools/nnictl/mock/experiment.py
imports: import argparse
  from pathlib import Path
  from subprocess import Popen, PIPE, STDOUT
  from nni.tools.nnictl.config_utils import Experiments
  from nni.tools.nnictl.common_utils import print_green
  from nni.tools.nnictl.command_utils import kill_command
  from nni.tools.nnictl.nnictl_utils import get_yml_content
label_desc: Use image node_id 3 for calling a global function with example usage: generate_args_parser() and returns: parser