def trigger_hook(self, hook_name):
        """ Triggers a given hook on all plugins, effectively calling all
        bound callbacks """
        hook_method = "on_{}".format(hook_name)
        for plugin_id in self.enabled_plugins:
            plugin_handle = self.instances[plugin_id]
            if hasattr(plugin_handle, hook_method):
                getattr(plugin_handle, hook_method)()
 Triggers a given hook on all plugins, effectively calling all
        bound callbacks 
metadrive/render_pipeline/rpcore/pluginbase/manager.py