code: def he_pm(request, pm: PluginManager) -> PluginManager:
      hookspec = HookspecMarker("example")
  
      class Hooks:
          @hookspec
          def he_method1(self, arg: int) -> int:
              return arg + 1
  
      pm.add_hookspecs(request.param(Hooks))
      return pm
  
imports: import pytest
  from pluggy import HookspecMarker
  from pluggy import PluginManager
label_desc: Use image node_id 1 for calling a global function with example usage: he_pm(request, pm) and returns: pm, unknown