code: def knn_query(self, data, k=1):
      labels_int, distances = self.index.knn_query(data=data, k=k)
      labels = []
      for li in labels_int:
          labels.append([self.dict_labels[l] for l in li])
      return labels, distances
  
file_path: hnswlib/examples/python/pyw_hnswlib.py
imports: import hnswlib
  import numpy
  import threading
  import pickle
label_desc: Use image node_id 8 for calling the Index obj's underlying member method code with example usage: obj.knn_query(data, k) and returns: labels,  distances