class_docstr: combines a set of inverted lists into a hstack
  masks part of those lists
  adds these inverted lists to an empty index that contains
  the info on how to perform searches
class_docstr_tok: ["combines","a","set","of","inverted","lists","into","a","hstack","masks","part","of","those","lists","adds","these","inverted","lists","to","an","empty","index","that","contains","the","info","on","how","to","perform","searches"]
code: def ivf_search_preassigned(self, xq, list_nos, coarse_dis, k):
      index_ivf = faiss.extract_index_ivf(self.index)
      n, d = xq.shape
      assert d == index_ivf.d
      n2, d2 = list_nos.shape
      assert list_nos.shape == coarse_dis.shape
      assert n2 == n
      assert d2 == index_ivf.nprobe
      D = np.empty((n, k), dtype="float32")
      I = np.empty((n, k), dtype="int64")
      index_ivf.search_preassigned(
          n,
          faiss.swig_ptr(xq),
          k,
          faiss.swig_ptr(list_nos),
          faiss.swig_ptr(coarse_dis),
          faiss.swig_ptr(D),
          faiss.swig_ptr(I),
          False,
      )
      return D, I
  
file_path: faiss/benchs/distributed_ondisk/combined_index.py
imports: import os
  import faiss
  import numpy
label_desc: Use image node_id 5 for calling the CombinedIndex obj's underlying member method code with example usage: obj.ivf_search_preassigned(xq, list_nos, coarse_dis, k) and returns: D,  I