code: def test_get_allowed_methods(skobject, allowed_methods):
      step = Step(
          skobject,
          "mock",
          {"X": [MagicMock()]},
          "transform",
          {"test": 24},
      )
      result = step.get_allowed_method()
  
      assert set(result) == set(allowed_methods)
  
file_path: sktime/sktime/pipeline/tests/test_step.py
imports: from unittest.mock import MagicMock
  import pandas
  import pytest
  from sktime.forecasting.naive import NaiveForecaster
  from sktime.pipeline.step import Step, StepResult
  from sktime.transformations.series.exponent import ExponentTransformer
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_allowed_methods(skobject, allowed_methods) without return types