human
Complete this python program:
def ffi_callback(signature, name, **kwargs):
assistant
#Here is the Python program you requested.

    """Callback dispatcher
    The ffi_callback() dispatcher keeps callbacks compatible between dynamic
    and static callbacks.
    """
    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