code: def test_objective_y_None() -> None:
      X, y = make_blobs(n_samples=10)
      est = SGDClassifier(max_iter=5, tol=1e-03)
      param_dist = {}  # type: ignore
      optuna_search = integration.OptunaSearchCV(
          est,
          param_dist,
          cv=3,
          enable_pruning=True,
          error_score="raise",
          random_state=0,
          return_train_score=True,
      )
  
      with pytest.raises(ValueError):
          optuna_search.fit(X)
  
imports: from __future__ import annotations
  from unittest.mock import MagicMock
  from unittest.mock import patch
  import warnings
  import numpy
  import pytest
  import scipy
  from sklearn.datasets import make_blobs
  from sklearn.datasets import make_regression
  from sklearn.decomposition import PCA
  from sklearn.exceptions import ConvergenceWarning
  from sklearn.exceptions import NotFittedError
  from sklearn.linear_model import LogisticRegression
  from sklearn.linear_model import SGDClassifier
  from sklearn.neighbors import KernelDensity
  from sklearn.tree import DecisionTreeRegressor
  from optuna import distributions
  from optuna import integration
  from optuna.samplers import BruteForceSampler
  from optuna.study import create_study
  from optuna.terminator.erroreval import _CROSS_VALIDATION_SCORES_KEY
label_desc: Use image node_id 15 for calling a global function with example usage: test_objective_y_None() without return types