code: def test_scheduler_factory__reaises_exception_on_unknown_str_scheduler():
      with pytest.raises(
          ValueError,
          match="Required key 'scheduler' in hyperparameter_tune_kwargs must be one of the values dict_keys",
      ):
          scheduler_factory(
              hyperparameter_tune_kwargs={
                  "scheduler": "_some_value_",
                  "searcher": "local_random",
              }
          )
  
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 4 for calling a global function with example usage: test_scheduler_factory__reaises_exception_on_unknown_str_scheduler() without return types