code: def test_only_kwargs(pm):
      class Api(object):
          @hookspec
          def hello(self, arg):
              "api hook 1"
  
      pm.add_hookspecs(Api)
      with pytest.raises(TypeError) as exc:
          pm.hook.hello(3)
  
      comprehensible = "hook calling supports only keyword arguments"
      assert comprehensible in str(exc.value)
  
file_path: catboost/contrib/python/pluggy/py2/tests/test_invocations.py
imports: import pytest
  from pluggy import PluginValidationError, HookimplMarker, HookspecMarker
label_desc: Use image node_id 2 for calling a global function with example usage: test_only_kwargs(pm) without return types