code: def test_fit_last_window_stored():
      """
      Test that values of last window are stored after fitting.
      """
      forecaster = ForecasterAutoregDirect(
          LinearRegression(), lags=3, steps=2
      )
      forecaster.fit(y=pd.Series(np.arange(50)))
      expected = pd.Series(np.array([47, 48, 49]), index=[47, 48, 49])
      results = forecaster.last_window
  
      pd.testing.assert_series_equal(expected, results)
  
file_path: skforecast/skforecast/ForecasterAutoregDirect/tests/test_fit.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 6 for calling a global function with example usage: test_fit_last_window_stored() without return types