code: def test_soft_voting_no_proba(create_X_y):
      from sklearn.linear_model import Perceptron
  
      X, y = create_X_y
      clf = Perceptron()
      clf.fit(X, y)
      with pytest.raises(ValueError):
          BaseDES([clf, clf], voting="soft").fit(X, y)
  
file_path: DESlib/deslib/tests/des/test_base.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from deslib.des.base import BaseDES
label_desc: Use image node_id 12 for calling a global function with example usage: test_soft_voting_no_proba(create_X_y) without return types