code: def test_exog_to_direct_numpy_when_steps_2_exog_numpy_array_1d():
      """
      Test exog_to_direct_numpy results when using steps 2 and exog is a
      1d numpy array.
      """
      exog = np.arange(10)
      results = exog_to_direct_numpy(exog=exog, steps=2)
      expected = np.array(
          [
              [0, 1],
              [1, 2],
              [2, 3],
              [3, 4],
              [4, 5],
              [5, 6],
              [6, 7],
              [7, 8],
              [8, 9],
          ]
      )
  
      np.testing.assert_array_equal(results, expected)
  
file_path: skforecast/skforecast/utils/tests/test_exog_to_direct_numpy.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils import exog_to_direct_numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_exog_to_direct_numpy_when_steps_2_exog_numpy_array_1d() without return types