code: def test_adagrad_elastic_hinge(bin_train_data):
      X_bin, y_bin = bin_train_data
      clf = AdaGradClassifier(
          alpha=0.5, l1_ratio=0.85, n_iter=10, random_state=0
      )
      clf.fit(X_bin, y_bin)
      assert not hasattr(clf, "predict_proba")
      assert clf.score(X_bin, y_bin) == 1.0
  
file_path: lightning/lightning/impl/tests/test_adagrad.py
imports: import numpy
  import pytest
  from lightning.classification import AdaGradClassifier
  from lightning.regression import AdaGradRegressor
  from lightning.impl.adagrad_fast import _proj_elastic_all
  from lightning.impl.tests.utils import check_predict_proba
label_desc: Use image node_id 1 for calling a global function with example usage: test_adagrad_elastic_hinge(bin_train_data) without return types