def METHOD_NAME(X_y_regression):
    X, y = X_y_regression
    estimator = TimeSeriesBaselineEstimator(gap=0, forecast_horizon=2)
    with pytest.raises(ValueError, match="if y is None"):
        estimator.fit(X, None)