code: def test_get_hookimpls(pm: PluginManager) -> None:
      class Hooks:
          @hookspec
          def he_method1(self, arg):
              pass
  
      pm.add_hookspecs(Hooks)
      assert pm.hook.he_method1.get_hookimpls() == []
  
      class Plugin1:
          @hookimpl
          def he_method1(self, arg):
              pass
  
      class Plugin2:
          @hookimpl
          def he_method1(self, arg):
              pass
  
      class PluginNo:
          pass
  
      plugin1, plugin2, plugin3 = Plugin1(), Plugin2(), PluginNo()
      pm.register(plugin1)
      pm.register(plugin2)
      pm.register(plugin3)
  
      hookimpls = pm.hook.he_method1.get_hookimpls()
      hook_plugins = [item.plugin for item in hookimpls]
      assert hook_plugins == [plugin1, plugin2]
  
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 22 for calling a global function with example usage: test_get_hookimpls(pm) without return types