code: def test_discover(
      plugin_type: Type[Plugin], expected: List[str]
  ) -> None:
      plugins = Plugins.instance().discover(plugin_type)
      expected_classes = [get_class(c) for c in expected]
      for ex in expected_classes:
          assert ex in plugins
  
file_path: hydra/tests/test_plugin_interface.py
imports: from typing import List, Type
  from pytest import mark, raises
  from hydra.core.config_search_path import ConfigSearchPath
  from hydra.core.plugins import Plugins
  from hydra.plugins.launcher import Launcher
  from hydra.plugins.plugin import Plugin
  from hydra.plugins.search_path_plugin import SearchPathPlugin
  from hydra.plugins.sweeper import Sweeper
  from hydra.utils import get_class
label_desc: Use image node_id 1 for calling a global function with example usage: test_discover(plugin_type, expected) without return types