code: def discover_plugins() -> Iterable[str]:
      """
      Returns an iterable of the plugins found.
      """
      plugins: Set[str] = set()
      if os.path.isfile(LOCAL_PLUGINS_FILENAME):
          with push_python_path("."):
              for plugin in discover_file_plugins(
                  LOCAL_PLUGINS_FILENAME
              ):
                  if plugin in plugins:
                      continue
                  yield plugin
                  plugins.add(plugin)
      if os.path.isfile(GLOBAL_PLUGINS_FILENAME):
          for plugin in discover_file_plugins(GLOBAL_PLUGINS_FILENAME):
              if plugin in plugins:
                  continue
              yield plugin
              plugins.add(plugin)
  
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 2 for calling a global function with example usage: discover_plugins() without return types