code: def test_sequential_scan(self):
      d = 20
      index = faiss.index_factory(d, "IVF100,SQ8")
  
      rs = np.random.RandomState(123)
      xt = rs.rand(5000, d).astype("float32")
      xb = rs.rand(10000, d).astype("float32")
      index.train(xt)
      index.add(xb)
      k = 15
      xq = rs.rand(200, d).astype("float32")
  
      ref_D, ref_I = index.search(xq, k)
      D, I = search_single_scan(index, xq, k, bs=10)
  
      assert np.all(D == ref_D)
      assert np.all(I == ref_I)
  
file_path: faiss/tests/test_ivflib.py
imports: from __future__ import absolute_import, division, print_function
  import unittest
  import faiss
  import numpy
label_desc: Use image node_id 1 for calling the TestSequentialScan obj's underlying member method code with example usage: obj.test_sequential_scan() without return types