def test_feature_times_extend_time_index_range_idx(self, config):
        """
        Tests that `_get_feature_times` is able to return feature
        times that occur after the end of a series or occur before
        the beginning of a series. This particular test uses range
        index time series.
        """
        # Feature times occur after end of series:
        series_type, output_chunk_shift = config
        if series_type == "integer":
            target = linear_timeseries(start=10, length=1, freq=3)
            past = linear_timeseries(start=2, length=1, freq=2)
            future = linear_timeseries(start=3, length=1, freq=1)
        else:
            target = linear_timeseries(
                start=pd.Timestamp("1/10/2000"), length=1, freq="3d"
            )
            past = linear_timeseries(
                start=pd.Timestamp("1/2/2000"), length=1, freq="2d"
            )
            future = linear_timeseries(
                start=pd.Timestamp("1/3/2000"), length=1, freq="1d"
            )
        lags = lags_past = lags_future_1 = [-4]
        feature_times = _get_feature_times(
            target_series=target,
            past_covariates=past,
            future_covariates=future,
            lags=lags,
            lags_past_covariates=lags_past,
            lags_future_covariates=lags_future_1,
            is_training=False,
            output_chunk_shift=output_chunk_shift,
        )
        assert len(feature_times[0]) == 1
        assert feature_times[0][0] == target.start_time() - lags[0] * target.freq
        assert len(feature_times[1]) == 1
        assert feature_times[1][0] == past.start_time() - lags_past[0] * past.freq
        assert len(feature_times[2]) == 1
        assert (
            feature_times[2][0] == future.start_time() - lags_future_1[0] * future.freq
        )
        # Feature time occurs before start of series:
        lags_future_2 = [4]
        feature_times = _get_feature_times(
            future_covariates=future,
            lags_future_covariates=lags_future_2,
            is_training=False,
            output_chunk_shift=output_chunk_shift,
        )
        assert len(feature_times[2]) == 1
        assert (
            feature_times[2][0] == future.start_time() - lags_future_2[0] * future.freq
        )

        Tests that `_get_feature_times` is able to return feature
        times that occur after the end of a series or occur before
        the beginning of a series. This particular test uses range
        index time series.
        
darts/tests/utils/tabularization/test_get_feature_times.py