code: def get_nearest_neighbors(self, query, k):
      query_emb = self.get_embeddings(query)
      return self.knn_func(query_emb, k)
  
imports: import numpy
  import torch
  from ..distances import BatchedDistance, CosineSimilarity
  from .None import common_functions
label_desc: Use image node_id 6 for calling the InferenceModel obj's underlying member method code with example usage: obj.get_nearest_neighbors(query, k) and returns: self