<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def call_hook(self, hook, *args, **kwargs):
 """ Calls each registered hook """

        for function in self.hooks[hook]:
            function.__call__(*args, **kwargs)