code: def test_equal_classes():
      X, y, knne = setup_test(n_neighbors=6)
      dist, inds = knne.kneighbors()
      classes = y[inds]
      b = np.apply_along_axis(np.bincount, 1, classes)
      assert np.equal(b, 2).all()
  
file_path: DESlib/deslib/tests/util/test_knne.py
imports: import pytest
  import numpy
  from deslib.util import faiss_knn_wrapper
  from deslib.util import KNNE
label_desc: Use image node_id 2 for calling a global function with example usage: test_equal_classes() without return types