code: def eval_intersection(I1, I2):
      """size of intersection between each line of two result tables"""
      I1 = np.ascontiguousarray(I1, dtype="int64")
      I2 = np.ascontiguousarray(I2, dtype="int64")
      n = I1.shape[0]
      assert I2.shape[0] == n
      k1, k2 = I1.shape[1], I2.shape[1]
      ninter = 0
      for i in range(n):
          ninter += ranklist_intersection_size(
              k1, swig_ptr(I1[i]), k2, swig_ptr(I2[i])
          )
      return ninter
  
imports: import numpy
  from faiss.loader import *
  import faiss
  import collections.abc
label_desc: Use image node_id 9 for calling a global function with example usage: eval_intersection(I1, I2) and returns: ninter