code: def test_search_space():
      search_space = dict(
          a=space.Real(1e-3, 1e-2, log=True),
          b=space.Real(1e-3, 1e-2),
          c=space.Int(1, 10),
          d=space.Categorical("a", "b", "c", "d"),
          e=space.Bool(),
      )
  
      def train_fn(args, reporter):
          a, b, c, d, e = (
              args["a"],
              args["b"],
              args["c"],
              args["d"],
              args["e"],
          )
  
          assert a <= 1e-2 and a >= 1e-3
          assert b <= 1e-2 and b >= 1e-3
          assert c <= 10 and c >= 1
          assert d in ["a", "b", "c", "d"]
          assert e in [True, False]
          reporter(epoch=1, accuracy=0)
  
      scheduler = LocalSequentialScheduler(
          train_fn,
          search_space=search_space,
          resource={"num_cpus": "all", "num_gpus": 0},
          num_trials=10,
          reward_attr="accuracy",
          time_attr="epoch",
          checkpoint=None,
      )
  
      scheduler.run()
  
file_path: autogluon/core/tests/unittests/scheduler/test_seq_scheduler.py
imports: import pytest
  from autogluon.common import space
  from autogluon.core.scheduler.seq_scheduler import LocalSequentialScheduler
label_desc: Use image node_id 9 for calling a global function with example usage: test_search_space() without return types