code: def test_get_scenarios_for_class(estimator_class):
      """Test retrieval of scenarios by class."""
      scenarios = retrieve_scenarios(obj=estimator_class)
  
      assert isinstance(
          scenarios, list
      ), "return of retrieve_scenarios is not a list"
      assert np.all(
          isinstance(x, TestScenario) for x in scenarios
      ), "return of retrieve_scenarios is not a list of scenarios"
  
imports: import numpy
  import pytest
  from sktime.registry import BASE_CLASS_LIST, BASE_CLASS_SCITYPE_LIST
  from sktime.utils._testing.scenarios import TestScenario
  from sktime.utils._testing.scenarios_getter import retrieve_scenarios
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_scenarios_for_class(estimator_class) without return types