code: def import_plugins() -> None:
      """
      Imports the plugins found with `discover_plugins()`.
      """
      # Ensure all relevant submodules of AllenNLP are imported.
      import_module_and_submodules(
          "allennlp",
          exclude={
              "allennlp.sanity_checks",  # deprecated
              "allennlp.tools",  # things in here are usually run as commands themselves
          },
      )
  
      # Workaround for a presumed Python issue where spawned processes can't find modules in the current directory.
      cwd = os.getcwd()
      if cwd not in sys.path:
          sys.path.append(cwd)
  
      for module_name in DEFAULT_PLUGINS:
          try:
              # For default plugins we recursively import everything.
              import_module_and_submodules(module_name)
              logger.info("Plugin %s available", module_name)
          except ModuleNotFoundError as e:
              if e.name != module_name:
                  logger.error(
                      f"Plugin {module_name} could not be loaded: {e}"
                  )
      for module_name in discover_plugins():
          try:
              importlib.import_module(module_name)
              logger.info("Plugin %s available", module_name)
          except ModuleNotFoundError as e:
              logger.error(
                  f"Plugin {module_name} could not be loaded: {e}"
              )
  
file_path: allennlp/allennlp/common/plugins.py
imports: import importlib
  import logging
  import os
  from pathlib import Path
  import sys
  from typing import Iterable, Set
  from allennlp.common.util import push_python_path, import_module_and_submodules
label_desc: Use image node_id 3 for calling a global function with example usage: import_plugins() without return types