code: def test_check_estimator_subset_tests():
      """Test that subsetting by tests_to_run and tests_to_exclude works as intended."""
      tests_to_run = [
          "test_get_params",
          "test_set_params",
          "test_clone",
          "test_repr",
          "test_capability_inverse_tag_is_correct",
          "test_remember_data_tag_is_correct",
      ]
      tests_to_exclude = [
          "test_repr",
          "test_remember_data_tag_is_correct",
      ]
  
      expected_tests = set(tests_to_run).difference(tests_to_exclude)
  
      results = check_estimator(
          ExponentTransformer,
          verbose=False,
          tests_to_run=tests_to_run,
          tests_to_exclude=tests_to_exclude,
      )
      results_tests = {x.split("[")[0] for x in results.keys()}
  
      assert results_tests == expected_tests
  
imports: import pytest
  from sktime.classification.dummy import DummyClassifier
  from sktime.forecasting.dummy import ForecastKnownValues
  from sktime.transformations.series.exponent import ExponentTransformer
  from sktime.utils.estimator_checks import check_estimator
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_estimator_subset_tests() without return types