code: def plugin_manager() -> pluggy.PluginManager:
      """Initialises a plugin manager which registers hook implementations."""
      _plugin_manager = pluggy.PluginManager("rasa")
      _plugin_manager.add_hookspecs(sys.modules["rasa.plugin"])
      _discover_plugins(_plugin_manager)
  
      return _plugin_manager
  
imports: import argparse
  import functools
  import sys
  from typing import Any, Dict, List, Optional, TYPE_CHECKING, Text, Tuple, Union
  import pluggy
  from rasa.cli import SubParsersAction
label_desc: Use image node_id 1 for calling a global function with example usage: plugin_manager() and returns: _plugin_manager