code: def test_sdca_regression(bin_train_data, loss):
      X_bin, y_bin = bin_train_data
      reg = SDCARegressor(loss=loss)
      reg.fit(X_bin, y_bin)
      y_pred = np.sign(reg.predict(X_bin))
      assert np.mean(y_bin == y_pred) == 1.0
  
file_path: lightning/lightning/impl/tests/test_sdca.py
imports: import numpy
  import pytest
  from lightning.classification import SDCAClassifier
  from lightning.regression import SDCARegressor
label_desc: Use image node_id 15 for calling a global function with example usage: test_sdca_regression(bin_train_data, loss) without return types