code: def handle_MapLong2Long(the_class):
      def replacement_map_add(self, keys, vals):
          (n,) = keys.shape
          assert (n,) == vals.shape
          self.add_c(n, swig_ptr(keys), swig_ptr(vals))
  
      def replacement_map_search_multiple(self, keys):
          (n,) = keys.shape
          vals = np.empty(n, dtype="int64")
          self.search_multiple_c(n, swig_ptr(keys), swig_ptr(vals))
          return vals
  
      replace_method(the_class, "add", replacement_map_add)
      replace_method(
          the_class, "search_multiple", replacement_map_search_multiple
      )
  
imports: import inspect
  import faiss
  import numpy
  from faiss.loader import DirectMap, IDSelector, IDSelectorArray, IDSelectorBatch, OperatingPoints, RangeSearchResult, rev_swig_ptr, swig_ptr, try_extract_index_ivf
label_desc: Use image node_id 17 for calling a global function with example usage: handle_MapLong2Long(the_class) and returns: vals