code: def test_fit_last_window_stored_when_different_lags():
      """
      Test that values of last window are stored after fitting when different lags
      configurations.
      """
      series = pd.DataFrame(
          {
              "l1": pd.Series(np.arange(10)),
              "l2": pd.Series(np.arange(100, 110)),
          }
      )
  
      forecaster = ForecasterAutoregMultiVariate(
          LinearRegression(),
          level="l2",
          lags={"l1": 3, "l2": [1, 5]},
          steps=2,
      )
      forecaster.fit(series=series)
      expected = pd.DataFrame(
          {
              "l1": pd.Series(np.array([5, 6, 7, 8, 9])),
              "l2": pd.Series(np.array([105, 106, 107, 108, 109])),
          }
      )
      expected.index = pd.RangeIndex(start=5, stop=10, step=1)
  
      pd.testing.assert_frame_equal(forecaster.last_window, expected)
  
file_path: skforecast/skforecast/ForecasterAutoregMultiVariate/tests/test_fit.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoregMultiVariate import ForecasterAutoregMultiVariate
  from sklearn.linear_model import LinearRegression
  from sklearn.preprocessing import StandardScaler
label_desc: Use image node_id 9 for calling a global function with example usage: test_fit_last_window_stored_when_different_lags() without return types