class_docstr: Accumulate query results from a sliced dataset. The final result will
  be in self.D, self.I.
code: def finalize(self):
      self.heaps.reorder()
  
imports: import numpy
  from faiss.loader import *
  import faiss
  import collections.abc
label_desc: Use image node_id 4 for calling the ResultHeap obj's underlying member method code with example usage: obj.finalize() without return types