code: def test_fit_in_sample_residuals_stored(n_jobs):
      """
      Test that values of in_sample_residuals are stored after fitting.
      """
      series = pd.DataFrame(
          {
              "l1": pd.Series(np.arange(10)),
              "l2": pd.Series(np.arange(10)),
          }
      )
  
      forecaster = ForecasterAutoregMultiVariate(
          LinearRegression(), level="l1", lags=3, steps=2, n_jobs=n_jobs
      )
      forecaster.fit(series=series)
      expected = {
          1: np.array(
              [
                  0.0000000e00,
                  0.0000000e00,
                  0.0000000e00,
                  0.0000000e00,
                  0.0000000e00,
                  8.8817842e-16,
              ]
          ),
          2: np.array([0.0, 0.0, 0.0, 0.0, 0.0, 0.0]),
      }
      results = forecaster.in_sample_residuals
  
      assert isinstance(results, dict)
      assert np.all(isinstance(x, np.ndarray) for x in results.values())
      assert results.keys() == expected.keys()
      assert np.all(
          np.all(np.isclose(results[k], expected[k]))
          for k in expected.keys()
      )
  
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 5 for calling a global function with example usage: test_fit_in_sample_residuals_stored(n_jobs) without return types