code: def test_local_sequential_scheduler():
      search_space = dict(
          lr=space.Real(1e-3, 1e-2, log=True),
          wd=space.Real(1e-3, 1e-2),
          epochs=10,
      )
  
      def train_fn(args, reporter):
          for e in range(args["epochs"]):
              dummy_reward = 1 - np.power(
                  1.8, -np.random.uniform(e, 2 * e)
              )
              reporter(
                  epoch=e + 1,
                  reward=dummy_reward,
                  lr=args.lr,
                  wd=args.wd,
              )
  
      scheduler = LocalSequentialScheduler(
          train_fn, search_space=search_space, num_trials=10
      )
      scheduler.run()
      scheduler.join_jobs()
      best_config = scheduler.get_best_config()
      best_task_id = scheduler.get_best_task_id()
      assert pickle.dumps(
          scheduler.config_history[best_task_id]
      ) == pickle.dumps(best_config)
  
imports: import pickle
  import time
  import numpy
  from autogluon.common import space
  from autogluon.core.scheduler import LocalSequentialScheduler
label_desc: Use image node_id 1 for calling a global function with example usage: test_local_sequential_scheduler() without return types