def test_calibration_hfc_start_predict(self, config):
        """Test calibration historical forecast start point when calling `predict()` ("end" position)."""
        cal_length, cal_stride, start_expected = config
        series = linear_timeseries(length=4)
        horizon = 2
        output_chunk_shift = 1
        assert (
            _get_calibration_hfc_start(
                series=[series],
                horizon=horizon,
                output_chunk_shift=output_chunk_shift,
                cal_length=cal_length,
                cal_stride=cal_stride,
                start="end",
                start_format="position",
            )
            == start_expected
        )
Test calibration historical forecast start point when calling `predict()` ("end" position).
darts/tests/models/forecasting/test_conformal_model.py