code: def test_not_predict_proba(create_X_y):
      X, y = create_X_y
      clf1 = Perceptron()
      clf1.fit(X, y)
      with pytest.raises(ValueError):
          APosteriori([clf1, clf1]).fit(X, y)
  
file_path: DESlib/deslib/tests/dcs/test_a_posteriori.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.dcs.a_posteriori import APosteriori
label_desc: Use image node_id 7 for calling a global function with example usage: test_not_predict_proba(create_X_y) without return types