def test_create_lagged_component_names(self, config):
        """
        Tests that `create_lagged_component_names` produces the expected features name depending
        on the lags, output_chunk_length and covariates.

        When lags are component-specific, they are identical across all the components.
        """
        (
            ts_tg,
            ts_pc,
            ts_fc,
            lags_tg,
            lags_pc,
            lags_fc,
            use_static_cov,
            ocl,
            expected_lagged_features,
            expected_lagged_labels,
        ) = config
        # lags as list
        created_lagged_features, created_lagged_labels = 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,
            output_chunk_length=ocl,
        )

        # converts lags to dictionary format
        lags_as_dict = self.convert_lags_to_dict(
            ts_tg,
            ts_pc,
            ts_fc,
            lags_tg,
            lags_pc,
            lags_fc,
        )

        created_lagged_features_dict_lags, created_lagged_labels_dict_lags = (
            create_lagged_component_names(
                target_series=ts_tg,
                past_covariates=ts_pc,
                future_covariates=ts_fc,
                lags=lags_as_dict["target"],
                lags_past_covariates=lags_as_dict["past"],
                lags_future_covariates=lags_as_dict["future"],
                concatenate=False,
                use_static_covariates=use_static_cov,
                output_chunk_length=ocl,
            )
        )
        assert expected_lagged_features == created_lagged_features
        assert expected_lagged_features == created_lagged_features_dict_lags
        assert expected_lagged_labels == created_lagged_labels
        assert expected_lagged_labels == created_lagged_labels_dict_lags

        Tests that `create_lagged_component_names` produces the expected features name depending
        on the lags, output_chunk_length and covariates.

        When lags are component-specific, they are identical across all the components.
        
darts/tests/utils/tabularization/test_create_lagged_training_data.py