code: def test_weighted_proba(weights, y_hats, expected_probas):
      assert np.isclose(
          SubjectiveClassifier._weighted_proba(
              np.array(weights), np.array(y_hats)
          ),
          np.array(expected_probas),
          atol=1e-02,
      ).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 5 for calling a global function with example usage: test_weighted_proba(weights, y_hats, expected_probas) without return types