code: def test_labels_not_encoded():
      X = np.tile(np.arange(10).reshape(-1, 1), 3)
      y = np.array(5 * ["cat"] + 5 * ["dog"])
      knne = KNNE(n_neighbors=6)
      knne.fit(X, y)
      dist, inds = knne.kneighbors()
      classes = y[inds]
      a = np.sum(classes == "dog")
      b = np.sum(classes == "cat")
      assert np.equal(b, a).all() and a == 30
  
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 6 for calling a global function with example usage: test_labels_not_encoded() without return types