code: def test_plugin_double_register(pm):
      """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 pytest
  import types
  from pluggy import PluginManager, PluginValidationError, HookCallError, HookimplMarker, HookspecMarker
  from pluggy.manager import importlib_metadata
label_desc: Use image node_id 1 for calling a global function with example usage: test_plugin_double_register(pm) without return types