code: def test_fit_last_window_stored_with_suppress_warnings(
      suppress_warnings,
  ):
      """
      Test that values of last window are stored after fitting.
      """
      forecaster = ForecasterSarimax(regressor=Sarimax(order=(1, 0, 0)))
      forecaster.fit(
          y=pd.Series(np.arange(50)),
          suppress_warnings=suppress_warnings,
      )
      expected = pd.Series(np.arange(50))
  
      pd.testing.assert_series_equal(forecaster.last_window, expected)
  
file_path: skforecast/skforecast/ForecasterSarimax/tests/test_fit.py
imports: import re
  import pytest
  import numpy
  import pandas
  from pmdarima.arima import ARIMA
  from skforecast.Sarimax import Sarimax
  from skforecast.ForecasterSarimax import ForecasterSarimax
  from .fixtures_ForecasterSarimax import y
  from .fixtures_ForecasterSarimax import y_datetime
label_desc: Use image node_id 4 for calling a global function with example usage: test_fit_last_window_stored_with_suppress_warnings(suppress_warnings) without return types