code: def check_predict_proba_one_binary(classifier, dataset):
      """predict_proba_one should return a dict with True and False keys."""
  
      for x, y in dataset:
          y_pred = classifier.predict_proba_one(x)
          classifier.learn_one(x, y)
          assert set(y_pred.keys()) == {False, True}
  
imports: from __future__ import annotations
  import copy
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: check_predict_proba_one_binary(classifier, dataset) without return types