code: def test_exogenous_transform_regression():
      y, X = load_longley()
      y_train, y_test, X_train, X_test = temporal_train_test_split(y, X)
      pipe = ExponentTransformer() ** SARIMAX()
      pipe.fit(y=y_train, X=X_train, fh=[1, 2, 3, 4])
      result = pipe.predict(X=X_test)
      result_pi = pipe.predict_interval(X=X_test)
  
      general_pipeline = Pipeline(
          [
              {
                  "skobject": ExponentTransformer(),
                  "name": "exponent",
                  "edges": {"X": "X"},
              },
              {
                  "skobject": SARIMAX(),
                  "name": "SARIMAX",
                  "edges": {"X": "exponent", "y": "y"},
              },
          ]
      )
  
      general_pipeline.fit(y=y_train, X=X_train, fh=[1, 2, 3, 4])
      result_general = general_pipeline.predict(X=X_test)
      result_pi_general = general_pipeline.predict_interval(X=X_test)
      np.testing.assert_array_equal(result, result_general)
      np.testing.assert_array_equal(result_pi, result_pi_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 4 for calling a global function with example usage: test_exogenous_transform_regression() without return types