def test_lagged_training_data_dict_lags_no_moving_window_error(self):
        """
        Tests that `create_lagged_training_data` throws correct error
        when `use_moving_window` is set to `False` and lags are provided
        as a dict for a multivariate series.
        """
        ts = linear_timeseries(start=1, length=20, freq=1, column_name="lin1")
        lags = [-1]
        lags_dict = {"lin1": [-1]}
        # one series, one set of lags are dict
        with pytest.raises(ValueError) as err:
            create_lagged_training_data(
                target_series=ts,
                output_chunk_length=1,
                lags=lags_dict,
                uses_static_covariates=False,
                use_moving_windows=False,
                output_chunk_shift=0,
            )
        assert str(err.value).startswith(
            "`use_moving_windows=False` is not supported when any of the lags is provided as a dictionary."
        )
        # all the series are provided, only one passed as dict
        with pytest.raises(ValueError) as err:
            create_lagged_training_data(
                target_series=ts,
                past_covariates=ts,
                future_covariates=ts,
                output_chunk_length=1,
                lags=lags,
                lags_past_covariates=lags_dict,
                lags_future_covariates=lags,
                uses_static_covariates=False,
                use_moving_windows=False,
                output_chunk_shift=0,
            )
        assert str(err.value).startswith(
            "`use_moving_windows=False` is not supported when any of the lags is provided as a dictionary."
        )

        Tests that `create_lagged_training_data` throws correct error
        when `use_moving_window` is set to `False` and lags are provided
        as a dict for a multivariate series.
        
darts/tests/utils/tabularization/test_create_lagged_training_data.py