code: def train(**kwargs):
      print("train", kwargs)
      if kwargs.get("chdir"):
          try:
              os.makedirs("./test_chdir")
          except Exception as e:
              print(e)
          os.chdir("./test_chdir")
      run = wandb.init()
      with run:
          c = dict(run.config)
          run.name = "{}-{}-{}".format(
              c.get("param0"), c.get("param1"), c.get("param2")
          )
          run_id = run.id
          print("SweepID", run.sweep_id)
          length = run.config.get("length", L)
          epochs = run.config.get("epochs", 27)
          delay = run.config.get("delay", 0)
          for e in range(epochs):
              n = float(length) * (float(e + 1) / epochs)
              val = (
                  run.config.param0
                  + run.config.param1 * n
                  + run.config.param2 * n * n
              )
              wandb.log(dict(val_acc=val))
              if delay:
                  time.sleep(delay)
              if POKE_LOCAL:
                  poke()
      shutil.copyfile("wandb/debug.log", "wandb/debug-%s.log" % run_id)
  
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 2 for calling a global function with example usage: train() without return types