human
Complete the below
def ffi_callback(signature, name, **kwargs):

    ''''Callback dispatcher
    The ffi_callback() dispatcher keeps callbacks compatible between dynamic
    and static callbacks.'
    '''
assistant
#Here is the Python program you requested.
    def wrapper(func):
        if lib.Cryptography_STATIC_CALLBACKS:
            ffi.def_extern(name=name, **kwargs)(func)
            callback = getattr(lib, name)
        else:
            callback = ffi.callback(signature, **kwargs)(func)
        return callback
    return wrapper