code: def test_plugin_double_register(pm: PluginManager) -> None:
      """Registering the same plugin more then once isn't allowed"""
      pm.register(42, name="abc")
      with pytest.raises(ValueError):
          pm.register(42, name="abc")
      with pytest.raises(ValueError):
          pm.register(42, name="def")
  
imports: import sys
  from typing import Any
  from typing import List
  import pytest
  from pluggy import HookCallError
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
  from pluggy import PluginValidationError
label_desc: Use image node_id 1 for calling a global function with example usage: test_plugin_double_register(pm) without return types