code: def test_number_of_imports(tmpdir: Path) -> None:
      os.environ["TMP_FILE"] = str(tmpdir / "import.log")
      # Tests that this plugin can be discovered via the plugins subsystem when looking at all Plugins
      assert "DiscoveryTestPlugin" in [
          x.__name__ for x in Plugins.instance().discover(Plugin)
      ]
  
      f = Path(os.environ["TMP_FILE"])
      txt = str(f.read_text())
      assert txt.split("\n").count("imported") == 1
  
imports: import os
  from pathlib import Path
  from hydra.core.plugins import Plugins
  from hydra.plugins.plugin import Plugin
label_desc: Use image node_id 1 for calling a global function with example usage: test_number_of_imports(tmpdir) without return types