code: def test_fit_same_residuals_when_residuals_greater_than_1000():
      """
      Test fit return same residuals when residuals len is greater than 1000.
      Testing with two different forecaster.
      """
      forecaster = ForecasterAutoreg(LinearRegression(), lags=3)
      forecaster.fit(y=pd.Series(np.arange(1200)))
      results_1 = forecaster.in_sample_residuals
      forecaster = ForecasterAutoreg(LinearRegression(), lags=3)
      forecaster.fit(y=pd.Series(np.arange(1200)))
      results_2 = forecaster.in_sample_residuals
  
      assert isinstance(results_1, np.ndarray)
      assert isinstance(results_2, np.ndarray)
      np.testing.assert_array_equal(results_1, results_2)
  
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 5 for calling a global function with example usage: test_fit_same_residuals_when_residuals_greater_than_1000() without return types