code: def test_method_logger_exception():
      """Test that _method_logger only works for _MockEstimatorMixin subclasses."""
  
      class _DummyClass:
          def __init__(self) -> None:
              """Empty method, here for testing purposes."""
              pass
  
          @_method_logger
          def _method(self):
              """Empty method, here for testing purposes."""
              pass
  
      with pytest.raises(TypeError) as excinfo:
          dummy_instance = _DummyClass()
          dummy_instance._method()
          assert "Estimator is not a Mock Estimator" in str(
              excinfo.value
          )
  
file_path: sktime/sktime/utils/estimators/tests/test_base.py
imports: import pytest
  from pandas.testing import assert_series_equal
  from sktime.classification.base import BaseClassifier
  from sktime.clustering.base import BaseClusterer
  from sktime.datasets import load_airline
  from sktime.forecasting.base import BaseForecaster
  from sktime.forecasting.naive import NaiveForecaster
  from sktime.transformations.base import BaseTransformer
  from sktime.transformations.series.boxcox import BoxCoxTransformer
  from sktime.utils.estimators import make_mock_estimator
  from sktime.utils.estimators._base import _method_logger, _MockEstimatorMixin
label_desc: Use image node_id 4 for calling a global function with example usage: test_method_logger_exception() without return types