code: def mmap_bvecs(fname):
      x = np.memmap(fname, dtype="uint8", mode="r")
      d = x[:4].view("int32")[0]
      return x.reshape(-1, d + 4)[:, 4:]
  
imports: from __future__ import print_function
  import numpy
  import time
  import os
  import sys
  import faiss
  import re
  from multiprocessing.pool import ThreadPool
  from datasets import ivecs_read
label_desc: Use image node_id 3 for calling a global function with example usage: mmap_bvecs(fname) and returns: x