code: def test_add_steps(steps):
      pipeline = Pipeline()
      for step in steps:
          pipeline = pipeline.add_step(**step)
      # Plus 2 because of the two start steps
      assert len(steps) == len(pipeline.steps)
  
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 1 for calling a global function with example usage: test_add_steps(steps) without return types