def METHOD_NAME(self, tas_series, random):
    # bootstrap is unnecessary when in base and out of base fully overlap
    # -- GIVEN
    tas = tas_series(
        self.ar1(alpha=0.8, n=int(4 * 365.25), random=random), start="2000-01-01"
    )
    tas_in_base = tas.sel(time=slice("2000-01-01", "2001-12-31"))
    tas_out_base = tas.sel(time=slice("2002-01-01", "2001-12-31"))
    per = percentile_doy(tas_in_base, per=90)
    # -- THEN
    with pytest.raises(KeyError):
        # -- WHEN
        tg10p(tas_out_base, per, freq="MS", bootstrap=True)