<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def invoke_hooks(hooks, name, *args, **kwargs):
 """ Invoke one or more hooks that have been registered under `name'. Additional arguments and keyword arguments can be provided. There is no exception catching, so if a hook fails, it will disrupt the chain and/or rest of program. """


    callbacks = hooks.get(name, [])

    for callback in callbacks:
        callback(*args, **kwargs)