code: def test_add_step_cloned():
      y, X = load_longley()
  
      exponent = ExponentTransformer()
      pipe = Pipeline()
      pipe = pipe.add_step(exponent, "exponent-1", {"X": "X"})
      pipe = pipe.add_step(exponent, "exponent-again", {"X": "X"})
      pipe.fit(X=X)
  
      assert id(pipe.assembled_steps["exponent-1"].skobject) == id(
          pipe.assembled_steps["exponent-again"].skobject
      )
      assert id(exponent) != id(
          pipe.assembled_steps["exponent-1"].skobject
      )
  
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 3 for calling a global function with example usage: test_add_step_cloned() without return types