code: def test_hookspec(pm):
      class HookSpec(object):
          @hookspec()
          def he_myhook1(arg1):
              pass
  
          @hookspec(firstresult=True)
          def he_myhook2(arg1):
              pass
  
          @hookspec(firstresult=False)
          def he_myhook3(arg1):
              pass
  
      pm.add_hookspecs(HookSpec)
      assert not pm.hook.he_myhook1.spec.opts["firstresult"]
      assert pm.hook.he_myhook2.spec.opts["firstresult"]
      assert not pm.hook.he_myhook3.spec.opts["firstresult"]
  
file_path: catboost/contrib/python/pluggy/py2/tests/test_hookcaller.py
imports: import pytest
  from pluggy import HookimplMarker, HookspecMarker
  from pluggy.hooks import HookImpl
label_desc: Use image node_id 11 for calling a global function with example usage: test_hookspec(pm) without return types