code: def test_no_hookspec(pm: PluginManager) -> None:
      """A hook with hookimpls can still be called even if no hookspec
      was registered for it (and call_pending wasn't called to check
      against it).
      """
  
      class Plugin:
          @hookimpl
          def hello(self, arg):
              return "Plugin.hello"
  
      pm.register(Plugin())
  
      assert pm.hook.hello(arg=10, extra=20) == ["Plugin.hello"]
  
file_path: catboost/contrib/python/pluggy/py3/tests/test_invocations.py
imports: from typing import Iterator
  import pytest
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
  from pluggy import PluginValidationError
label_desc: Use image node_id 10 for calling a global function with example usage: test_no_hookspec(pm) and returns: str