code: def test_create_train_X_y_output_when_transformer_y_and_transformer_exog():
      """
      Test the output of create_train_X_y when using transformer_y and transformer_exog.
      """
      y = pd.Series(np.arange(8), dtype=float)
      y.index = pd.date_range("1990-01-01", periods=8, freq="D")
      exog = pd.DataFrame(
          {
              "col_1": [7.5, 24.4, 60.3, 57.3, 50.7, 41.4, 87.2, 47.4],
              "col_2": ["a", "a", "a", "a", "b", "b", "b", "b"],
          },
          index=pd.date_range("1990-01-01", periods=8, freq="D"),
      )
  
      transformer_y = StandardScaler()
      transformer_exog = ColumnTransformer(
          [
              ("scale", StandardScaler(), ["col_1"]),
              ("onehot", OneHotEncoder(), ["col_2"]),
          ],
          remainder="passthrough",
          verbose_feature_names_out=False,
      )
  
      forecaster = ForecasterAutoreg(
          regressor=LinearRegression(),
          lags=5,
          transformer_y=transformer_y,
          transformer_exog=transformer_exog,
      )
      results = forecaster.create_train_X_y(y=y, exog=exog)
  
      expected = (
          pd.DataFrame(
              data=np.array(
                  [
                      [
                          0.21821789,
                          -0.21821789,
                          -0.65465367,
                          -1.09108945,
                          -1.52752523,
                          -0.25107995,
                          0.0,
                          1.0,
                      ],
                      [
                          0.65465367,
                          0.21821789,
                          -0.21821789,
                          -0.65465367,
                          -1.09108945,
                          1.79326881,
                          0.0,
                          1.0,
                      ],
                      [
                          1.09108945,
                          0.65465367,
                          0.21821789,
                          -0.21821789,
                          -0.65465367,
                          0.01673866,
                          0.0,
                          1.0,
                      ],
                  ]
              ),
              index=pd.date_range("1990-01-06", periods=3, freq="D"),
              columns=[
                  "lag_1",
                  "lag_2",
                  "lag_3",
                  "lag_4",
                  "lag_5",
                  "col_1",
                  "col_2_a",
                  "col_2_b",
              ],
          ),
          pd.Series(
              data=np.array([0.65465367, 1.09108945, 1.52752523]),
              index=pd.date_range("1990-01-06", periods=3, freq="D"),
              name="y",
              dtype=float,
          ),
      )
  
      pd.testing.assert_frame_equal(results[0], expected[0])
      pd.testing.assert_series_equal(results[1], expected[1])
  
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoreg import ForecasterAutoreg
  from skforecast.preprocessing import TimeSeriesDifferentiator
  from skforecast.exceptions import MissingValuesExogWarning
  from sklearn.linear_model import LinearRegression
  from sklearn.compose import ColumnTransformer
  from sklearn.preprocessing import StandardScaler
  from sklearn.preprocessing import OneHotEncoder
  from .fixtures_ForecasterAutoreg import data
label_desc: Use image node_id 16 for calling a global function with example usage: test_create_train_X_y_output_when_transformer_y_and_transformer_exog() without return types