code: def test_pect_zero():
      X = np.random.rand(10, 2)
      y = np.ones(10)
      with pytest.raises(ValueError):
          desknn = DESKNN(pct_accuracy=0.0, pct_diversity=0.0)
          desknn.fit(X, y)
  
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.des.des_knn import DESKNN
label_desc: Use image node_id 14 for calling a global function with example usage: test_pect_zero() without return types