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