code: def _parse_args():
      args = argparse.ArgumentParser()
      args.add_argument(
          "--workload",
          type=str,
          required=True,
      )
      args.add_argument(
          "--target",
          type=str,
          required=True,
      )
      args.add_argument(
          "--num-trials",
          type=int,
          required=True,
      )
      args.add_argument(
          "--rpc-host",
          type=str,
          required=True,
      )
      args.add_argument(
          "--rpc-port",
          type=int,
          required=True,
      )
      args.add_argument(
          "--rpc-key",
          type=str,
          required=True,
      )
      args.add_argument(
          "--work-dir",
          type=str,
          required=True,
      )
      args.add_argument(
          "--number",
          type=int,
          default=3,
      )
      args.add_argument(
          "--repeat",
          type=int,
          default=1,
      )
      args.add_argument(
          "--min-repeat-ms",
          type=int,
          default=100,
      )
      args.add_argument(
          "--adaptive-training",
          type=lambda x: bool(strtobool(x)),
          required=False,
          help="example: True / False",
          default=True,
      )
      args.add_argument(
          "--cpu-flush",
          type=lambda x: bool(strtobool(x)),
          help="example: True / False",
          required=True,
      )
      parsed = args.parse_args()
      parsed.target = tvm.target.Target(parsed.target)
      parsed.rpc_config = ms.runner.RPCConfig(
          tracker_host=parsed.rpc_host,
          tracker_port=parsed.rpc_port,
          tracker_key=parsed.rpc_key,
          session_timeout_sec=60,
      )
      return parsed
  
file_path: tvm/python/tvm/auto_scheduler/testing/tune_te.py
imports: from distutils.util import strtobool
  import argparse
  import os
  import tvm
  from tvm import auto_scheduler
  from tvm import meta_schedule
  from tvm.meta_schedule.testing.te_workload import CONFIGS
  from tvm.meta_schedule.utils import cpu_count
  from tvm.support import describe
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_args() and returns: parsed