code: def test_get_params():
      exponent = ExponentTransformer()
      pipe = Pipeline()
      pipe = pipe.add_step(exponent, "exponent-1", {"X": "X"})
      pipe = pipe.add_step(exponent, "exponent-again", {"X": "X"})
  
      params = pipe.get_params()
      pipe2 = Pipeline(params["steps"])
  
      assert len(params) == 1 + len(exponent.get_params(deep=True)) * 2
      assert len(params["steps"]) == 2
      assert pipe2 == pipe
  
file_path: sktime/sktime/pipeline/tests/test_pipeline.py
imports: from unittest.mock import MagicMock
  import pytest
  from sktime.classification.distance_based import KNeighborsTimeSeriesClassifier
  from sktime.datasets import load_longley
  from sktime.pipeline.pipeline import MethodNotImplementedError, Pipeline
  from sktime.transformations.series.boxcox import BoxCoxTransformer
  from sktime.transformations.series.exponent import ExponentTransformer
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_params() without return types