code: def query(self, query, k):
      timer = utils.Timer(
          f"Finding {k} nearest neighbors in existing embedding using HNSWlib "
          f"approximate search...",
          self.verbose,
      )
      timer.__enter__()
  
      # Set ef parameter for (ideal) precision/recall
      self.index.set_ef(min(2 * k, self.index.get_current_count()))
  
      # Query for kNN
      indices, distances = self.index.knn_query(
          query, k=k, num_threads=self.n_jobs
      )
  
      # Stop timer
      timer.__exit__()
  
      # return indices and distances
      return indices, distances
  
imports: import logging
  import os
  import warnings
  import numpy
  from scipy.spatial.distance import cdist
  from sklearn import neighbors
  from sklearn.utils import check_random_state
  from openTSNE import utils
label_desc: Use image node_id 3 for calling the HNSW obj's underlying member method code with example usage: obj.query(query, k) and returns: indices,  distances