def test_create_lagged_component_names_different_lags(self, config):
        """
        Tests that `create_lagged_component_names` when lags are different across components.

        The lagged features should be sorted by lags, then by components.
        """
        (
            ts_tg,
            ts_pc,
            ts_fc,
            lags_tg,
            lags_pc,
            lags_fc,
            use_static_cov,
            expected_lagged_features,
        ) = config

        created_lagged_features, _ = create_lagged_component_names(
            target_series=ts_tg,
            past_covariates=ts_pc,
            future_covariates=ts_fc,
            lags=lags_tg,
            lags_past_covariates=lags_pc,
            lags_future_covariates=lags_fc,
            concatenate=False,
            use_static_covariates=use_static_cov,
        )
        assert expected_lagged_features == created_lagged_features

        Tests that `create_lagged_component_names` when lags are different across components.

        The lagged features should be sorted by lags, then by components.
        
darts/tests/utils/tabularization/test_create_lagged_training_data.py