code: def _get_cffi_func(func, signature=None):
      # Get function pointer
      func_ptr = ffi.cast("uintptr_t", func)
  
      # Get signature
      if signature is None:
          signature = ffi.getctype(ffi.typeof(func)).replace("(*)", " ")
  
      return func_ptr, signature
  
file_path: catboost/contrib/python/scipy/py2/scipy/_lib/_ccallback.py
imports: from .None import _ccallback_c
  import ctypes
label_desc: Use image node_id 5 for calling a global function with example usage: _get_cffi_func(func, signature) and returns: func_ptr,  signature