code: def test_fit_last_window_stored():
      """
      Test that values of last window are stored after fitting.
      """
      forecaster = ForecasterAutoreg(LinearRegression(), lags=3)
      forecaster.fit(y=pd.Series(np.arange(50)))
      expected = pd.Series(np.array([47, 48, 49]), index=[47, 48, 49])
  
      pd.testing.assert_series_equal(forecaster.last_window, expected)
  
file_path: skforecast/skforecast/ForecasterAutoreg/tests/test_fit.py
imports: import numpy
  import pandas
  from skforecast.ForecasterAutoreg import ForecasterAutoreg
  from sklearn.linear_model import LinearRegression
  from .fixtures_ForecasterAutoreg import y
label_desc: Use image node_id 7 for calling a global function with example usage: test_fit_last_window_stored() without return types