code: def test_method_logger():
      """Test that method logger returns the correct output."""
  
      class _DummyClass(_MockEstimatorMixin):
          def __init__(self) -> None:
              super().__init__()
  
          @_method_logger
          def _method1(
              self, positional_param, optional_param="test_optional"
          ):
              """Empty method, here for testing purposes."""
              pass
  
          @_method_logger
          def _method2(
              self, positional_param, optional_param="test_optional_2"
          ):
              """Empty method, here for testing purposes."""
              pass
  
          @_method_logger
          def _method3(self):
              """Empty method, here for testing purposes."""
              pass
  
      dummy_instance = _DummyClass()
      dummy_instance._method1("test_positional")
      assert dummy_instance.log == [
          (
              "_method1",
              {
                  "positional_param": "test_positional",
                  "optional_param": "test_optional",
              },
          )
      ]
      dummy_instance._method2("test_positional_2")
      assert dummy_instance.log == [
          (
              "_method1",
              {
                  "positional_param": "test_positional",
                  "optional_param": "test_optional",
              },
          ),
          (
              "_method2",
              {
                  "positional_param": "test_positional_2",
                  "optional_param": "test_optional_2",
              },
          ),
      ]
      dummy_instance._method3()
      assert dummy_instance.log == [
          (
              "_method1",
              {
                  "positional_param": "test_positional",
                  "optional_param": "test_optional",
              },
          ),
          (
              "_method2",
              {
                  "positional_param": "test_positional_2",
                  "optional_param": "test_optional_2",
              },
          ),
          ("_method3", {}),
      ]
  
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 5 for calling a global function with example usage: test_method_logger() without return types