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