code: def test_discovery() -> None:
      # Tests that this plugin can be discovered after Plugins.register is called
  
      plugin_name = ExampleRegisteredPlugin.__name__
  
      assert plugin_name not in [
          x.__name__ for x in Plugins.instance().discover(Plugin)
      ]
  
      register_example_plugin()
  
      assert plugin_name in [
          x.__name__ for x in Plugins.instance().discover(Plugin)
      ]
  
imports: from hydra.core.plugins import Plugins
  from hydra.plugins.plugin import Plugin
  from example_registered_plugin import ExampleRegisteredPlugin, register_example_plugin
label_desc: Use image node_id 1 for calling a global function with example usage: test_discovery() without return types