code: def main():
      global POKE_LOCAL
      # os.environ["WANDB_DEBUG"] = "true"
      parser = argparse.ArgumentParser()
      parser.add_argument("-t", "--test", default="", type=str)
      parser.add_argument("-x", "--exclude", default="", type=str)
      parser.add_argument("--grid_hyper_delay", type=int)
      parser.add_argument(
          "--dryrun", dest="dryrun", action="store_true"
      )
      parser.add_argument("--local", dest="local", action="store_true")
      args = parser.parse_args()
  
      all_tests = dict(
          quick=sweep_quick,
          grid=sweep_grid,
          bayes=sweep_bayes,
          grid_hyper=sweep_grid_hyperband,
          chdir=sweep_chdir,
      )
      default_tests = ("quick", "grid", "bayes", "chdir")
      test_list = args.test.split(",") if args.test else default_tests
      exclude_list = args.exclude.split(",") if args.exclude else []
  
      for t in test_list:
          POKE_LOCAL = False
          if t in exclude_list:
              continue
          print(f"Testing: {t}")
          f = all_tests.get(t)
          if f is None:
              raise Exception("Unknown test: %s" % t)
          if args.dryrun:
              continue
          if args.local and t == "grid_hyper":
              POKE_LOCAL = True
          f(args)
  
file_path: wandb/tests/standalone_tests/sweep_check.py
imports: import argparse
  import os
  import shutil
  import time
  import requests
  import wandb
label_desc: Use image node_id 11 for calling a global function with example usage: main() without return types