code: def extract_ext_funcs(finit):
      """
      Extract the extension PackedFuncs from a C module.
  
      Parameters
      ----------
      finit : ctypes function
          a ctypes that takes signature of TVMExtensionDeclarer
  
      Returns
      -------
      fdict : dict of str to Function
          The extracted functions
      """
      fdict = {}
  
      def _list(name, func):
          fdict[name] = func
  
      myf = convert_to_tvm_func(_list)
      ret = finit(myf.handle)
      _ = myf
      if ret != 0:
          raise RuntimeError("cannot initialize with %s" % finit)
      return fdict
  
file_path: tvm/python/tvm/_ffi/registry.py
imports: import sys
  import ctypes
  from .base import _LIB, check_call, py_str, c_str, string_types, _FFI_MODE, _RUNTIME_ONLY
label_desc: Use image node_id 7 for calling a global function with example usage: extract_ext_funcs(finit) and returns: fdict