def METHOD_NAME(cv, est, avg, return_raw_predictions):
    preds = cross_val_predict(
        est, y, cv=cv, verbose=4, averaging=avg,
        return_raw_predictions=return_raw_predictions)
    assert isinstance(preds, np.ndarray)
    if return_raw_predictions:
        assert preds.shape[0] == len(y)
        assert preds.shape[1] == cv.horizon
    else:
        assert preds.ndim == 1