<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_hook(hook_name, *args, **kwargs):
 """Runs the passed hook on all registered plugins The function checks, whether the hook is available in the plugin. :param hook_name: Name of the hook, corresponds to the function name being called :param args: Arguments :param kwargs: Keyword arguments """

    for module in plugin_dict.values():
        if hasattr(module, "hooks") and callable(getattr(module.hooks, hook_name, None)):
            getattr(module.hooks, hook_name)(*args, **kwargs)