code: def faiss_search_knn(
      feat,
      k,
      nprobe=128,
      num_process=4,
      is_precise=True,
      sort=True,
      verbose=False,
  ):
      dists, nbrs = faiss_search_approx_knn(
          query=feat, target=feat, k=k, nprobe=nprobe, verbose=verbose
      )
  
      if is_precise:
          print(
              "compute precise dist among k={} nearest neighbors".format(
                  k
              )
          )
          dists, nbrs = precise_dist(
              feat,
              nbrs,
              num_process=num_process,
              sort=sort,
              verbose=verbose,
          )
  
      return dists, nbrs
  
imports: import gc
  from tqdm import tqdm
  from .faiss_gpu import faiss_search_approx_knn
label_desc: Use image node_id 4 for calling a global function with example usage: faiss_search_knn(feat, k, nprobe, num_process, is_precise, sort, verbose) and returns: dists,  nbrs