<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _run_hooks(self, name, module):
 """ Run all hooks for a module. """

        hooks = self.post_load_hooks.pop(name, [])

        for hook in hooks:
            hook(module)