code: def test_discovery() -> None:
      # Tests that this plugin can be discovered via the plugins subsystem when looking at the Sweeper plugins
      assert ExampleSweeper.__name__ in [
          x.__name__ for x in Plugins.instance().discover(Sweeper)
      ]
  
file_path: hydra/examples/plugins/example_sweeper_plugin/tests/test_example_sweeper_plugin.py
imports: from pytest import mark
  from hydra.core.plugins import Plugins
  from hydra.plugins.sweeper import Sweeper
  from hydra.test_utils.launcher_common_tests import BatchedSweeperTestSuite, IntegrationTestSuite, LauncherTestSuite
  from hydra.test_utils.test_utils import TSweepRunner
  from hydra_plugins.example_sweeper_plugin.example_sweeper import ExampleSweeper
label_desc: Use image node_id 1 for calling a global function with example usage: test_discovery() without return types