code: def test_exog_to_direct_when_steps_2_exog_1d_float_int(exog, dtype):
      """
      Test exog_to_direct results when using steps 2 and exog is a
      1d pandas Series or 1 column DataFrame of ints or floats.
      """
      results = exog_to_direct(exog=exog, steps=2)
      expected = pd.DataFrame(
          data=np.array(
              [
                  [0, 1],
                  [1, 2],
                  [2, 3],
                  [3, 4],
                  [4, 5],
                  [5, 6],
                  [6, 7],
                  [7, 8],
                  [8, 9],
              ]
          ),
          index=pd.RangeIndex(start=1, stop=10, step=1),
          columns=["exog_step_1", "exog_step_2"],
      ).astype({"exog_step_1": dtype, "exog_step_2": dtype})
  
      pd.testing.assert_frame_equal(results, expected)
  
file_path: skforecast/skforecast/utils/tests/test_exog_to_direct.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils import exog_to_direct
  from pandas.api.types import CategoricalDtype
label_desc: Use image node_id 2 for calling a global function with example usage: test_exog_to_direct_when_steps_2_exog_1d_float_int(exog, dtype) without return types