code: def test_forecasting_residuals_inputs(self):
      # test input types past and/or future covariates
  
      # dummy covariates and target TimeSeries instances
  
      (
          target_series,
          past_covariates,
          future_covariates,
      ) = dummy_timeseries(
          length=10,
          n_series=1,
          comps_target=1,
          comps_pcov=1,
          comps_fcov=1,
      )  # outputs Sequences[TimeSeries] and not TimeSeries
  
      model = LinearRegressionModel(
          lags=4, lags_past_covariates=4, lags_future_covariates=(4, 1)
      )
      model.fit(
          series=target_series,
          past_covariates=past_covariates,
          future_covariates=future_covariates,
      )
  
file_path: darts/darts/tests/utils/test_residuals.py
imports: import numpy
  import pytest
  from darts.logging import get_logger
  from darts.models import LinearRegressionModel, NaiveSeasonal
  from darts.tests.models.forecasting.test_regression_models import dummy_timeseries
  from darts.utils.timeseries_generation import constant_timeseries
  from darts.utils.timeseries_generation import linear_timeseries
label_desc: Use image node_id 2 for calling the TestResiduals obj's underlying member method code with example usage: obj.test_forecasting_residuals_inputs() without return types