code: def setup_test(n_neighbors, knn_classifier="sklearn"):
      X = np.tile(np.arange(15).reshape(-1, 1), 3)
      y = np.array(5 * [0] + 5 * [1] + 5 * [2])
      knne = KNNE(
          n_neighbors=n_neighbors, knn_classifier=knn_classifier
      )
      knne.fit(X, y)
      return X, y, knne
  
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 1 for calling a global function with example usage: setup_test(n_neighbors, knn_classifier) and returns: X,  y,  knne