code: def test_LocalSequentialScheduler_no_criteria():
      search_space = {"lr": space.Real(1e-2, 1e-1, log=True)}
  
      def _train_fn_():
          pass
  
      with pytest.raises(
          AssertionError,
          match="Need stopping criterion: Either num_trials or time_out",
      ):
          LocalSequentialScheduler(
              train_fn=_train_fn_,
              search_space=search_space,
              reward_attr="reward_attr",
              resource={},
          )
  
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 8 for calling a global function with example usage: test_LocalSequentialScheduler_no_criteria() without return types