code: def test_binary_linear_sgd(data, clf, request):
      X, y = request.getfixturevalue(data)
      clf.fit(X, y)
      assert clf.score(X, y) > 0.934
      assert list(clf.classes_) == [0, 1]
      if clf.loss in {"log", "modified_huber"}:
          check_predict_proba(clf, X)
      else:
          assert not hasattr(clf, "predict_proba")
  
file_path: lightning/lightning/impl/tests/test_sgd.py
imports: import numpy
  import pytest
  from sklearn.datasets import make_regression
  from lightning.impl.datasets.samples_generator import make_nn_regression
  from lightning.impl.sgd import SGDClassifier
  from lightning.impl.sgd import SGDRegressor
  from lightning.impl.tests.utils import check_predict_proba
label_desc: Use image node_id 3 for calling a global function with example usage: test_binary_linear_sgd(data, clf, request) without return types