code: def test_scheduler_factory__reaises_exception_on_missing_searcher():
      with pytest.raises(
          ValueError,
          match="Required key 'searcher' is not present in hyperparameter_tune_kwargs",
      ):
          scheduler_factory(
              hyperparameter_tune_kwargs={"scheduler": "local"}
          )
  
file_path: autogluon/core/tests/unittests/core/scheduler/test_scheduler_factory.py
imports: import pytest
  from autogluon.core.scheduler.scheduler_factory import get_hyperparameter_tune_kwargs_preset, scheduler_factory
  from autogluon.core.scheduler.seq_scheduler import LocalSequentialScheduler
label_desc: Use image node_id 5 for calling a global function with example usage: test_scheduler_factory__reaises_exception_on_missing_searcher() without return types