code: def test_create_lags_when_lags_is_list_interspersed_lags_steps_1_and_y_is_numpy_arange_10():
      """
      Test matrix of lags created properly when lags is a list with interspersed
      lags, steps is 1 and y is np.arange(10).
      """
      forecaster = ForecasterAutoregDirect(
          LinearRegression(), lags=[1, 5], steps=1
      )
      results = forecaster._create_lags(y=np.arange(10))
      expected = (
          np.array(
              [
                  [4.0, 0.0],
                  [5.0, 1.0],
                  [6.0, 2.0],
                  [7.0, 3.0],
                  [8.0, 4.0],
              ]
          ),
          np.array([[5.0, 6.0, 7.0, 8.0, 9.0]]),
      )
  
      assert (results[0] == expected[0]).all()
      assert (results[1] == expected[1]).all()
  
file_path: skforecast/skforecast/ForecasterAutoregDirect/tests/test_create_lags.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoregDirect import ForecasterAutoregDirect
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_lags_when_lags_is_list_interspersed_lags_steps_1_and_y_is_numpy_arange_10() without return types