code: def sweep_grid_hyperband(args):
      config = dict(
          method="grid",
          metric=dict(name="val_acc", goal="maximize"),
          parameters=dict(
              param0=dict(values=[2]),
              param1=dict(values=[4, 1, 0]),
              param2=dict(values=[1.5, 0.5, 0]),
              delay=dict(value=args.grid_hyper_delay or 1),
              epochs=dict(value=27),
          ),
          early_terminate=dict(
              type="hyperband", max_iter=27, s=2, eta=3
          ),
      )
      sweep_id = wandb.sweep(config, project=PROJECT)
      print("sweep:", sweep_id)
      wandb.agent(sweep_id, function=train, count=9)
      # TODO(check stopped)
      check(sweep_id, num=9, result=2 + 4 * L + 1.5 * L * L, stopped=3)
  
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 9 for calling a global function with example usage: sweep_grid_hyperband(args) without return types