def is_cffi_func(obj):
    try:
        return ffi.typeof(obj).kind == 'function'
    except TypeError:
        try:
            return obj in _ool_func_types
        except:
            return False
Check whether the obj is a CFFI function
dataset/ETHPy150Open numba/numba/numba/typing/cffi_utils.py/is_cffi_func