code: def test_soft_predictions(method, y_true):
      clf = DummyClassifier()
  
      output = _get_soft_predictions(clf, None, method)
      assert_array_almost_equal(y_true, output)
  
file_path: fairlearn/test/unit/utils/test_common.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from sklearn.base import BaseEstimator, ClassifierMixin
  from fairlearn.utils._common import _get_soft_predictions
label_desc: Use image node_id 1 for calling a global function with example usage: test_soft_predictions(method, y_true) without return types