code: def AlignedTable_to_array(v):
      """convert an AlignedTable to a numpy array"""
      classname = v.__class__.__name__
      assert classname.startswith("AlignedTable")
      dtype = classname[12:].lower()
      a = np.empty(v.size(), dtype=dtype)
      if a.size > 0:
          memcpy(swig_ptr(a), v.data(), a.nbytes)
      return a
  
file_path: faiss/faiss/python/array_conversions.py
imports: import numpy
  import array
  import warnings
  from faiss.loader import *
label_desc: Use image node_id 7 for calling a global function with example usage: AlignedTable_to_array(v) and returns: a