code: def test_feature_union_subsetting_regression():
      X = _make_hierarchical(
          hierarchy_levels=(2, 2),
          n_columns=2,
          min_timepoints=3,
          max_timepoints=3,
      )
      pipe = (
          Id()
          + Differencer()["c0"]
          + Lag([1, 2], index_out="original")[["c1", "c0"]]
      )
      result = pipe.fit_transform(X)
  
      general_pipeline = Pipeline(
          [
              {"skobject": Id(), "name": "id", "edges": {"X": "X"}},
              {
                  "skobject": Differencer(),
                  "name": "differencer",
                  "edges": {"X": "X__c0"},
              },
              {
                  "skobject": Lag([1, 2], index_out="original"),
                  "name": "lag",
                  "edges": {"X": "X__c1_c0"},
              },
              {
                  "skobject": Id(),
                  "name": "combined",
                  "edges": {"X": ["id", "differencer", "lag"]},
              },
          ]
      )
  
      result_general = general_pipeline.fit_transform(X=X)
      np.testing.assert_array_equal(result, result_general)
  
imports: import numpy
  import pandas
  import pytest
  from skbase.utils.dependencies import _check_soft_dependencies
  from sktime.classification.dummy import DummyClassifier
  from sktime.datasets import load_arrow_head, load_longley
  from sktime.forecasting.compose import ForecastX
  from sktime.forecasting.naive import NaiveForecaster
  from sktime.forecasting.sarimax import SARIMAX
  from sktime.pipeline.pipeline import Pipeline
  from sktime.split import temporal_train_test_split
  from sktime.transformations.compose import Id
  from sktime.transformations.series.boxcox import BoxCoxTransformer
  from sktime.transformations.series.detrend import Detrender
  from sktime.transformations.series.difference import Differencer
  from sktime.transformations.series.exponent import ExponentTransformer
  from sktime.transformations.series.lag import Lag
  from sktime.utils._testing.hierarchical import _bottom_hier_datagen, _make_hierarchical
label_desc: Use image node_id 7 for calling a global function with example usage: test_feature_union_subsetting_regression() without return types