code: def checksum(a):
      """compute a checksum for quick-and-dirty comparisons of arrays"""
      a = a.view("uint8")
      if a.ndim == 1:
          return bvec_checksum(a.size, swig_ptr(a))
      n, d = a.shape
      cs = np.zeros(n, dtype="uint64")
      bvecs_checksum(n, d, swig_ptr(a), swig_ptr(cs))
      return cs
  
imports: import numpy
  from faiss.loader import *
  import faiss
  import collections.abc
label_desc: Use image node_id 7 for calling a global function with example usage: checksum(a) and returns: cs, bvec_checksum