code: def test_to_discrete():
      assert np.isclose(
          SubjectiveClassifier._to_discrete(
              np.array([[1, 0], [0.8, 0.2], [0.5, 0.5], [0.2, 0.8]])
          ),
          np.array([[1, 0], [1, 0], [1, 0], [0, 1]]),
      ).all()
  
file_path: scikit-lego/tests/test_meta/test_subjective_classifier.py
imports: import numpy
  import pytest
  from sklearn.cluster import DBSCAN
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.linear_model import LogisticRegression, Ridge
  from sklego.common import flatten
  from sklego.meta import SubjectiveClassifier
  from tests.conftest import classifier_checks, general_checks, select_tests
label_desc: Use image node_id 4 for calling a global function with example usage: test_to_discrete() without return types