code: def test_hookimpl(name, val):
      @hookimpl(**{name: val})
      def he_myhook1(arg1):
          pass
  
      if val:
          assert he_myhook1.example_impl.get(name)
      else:
          assert not hasattr(he_myhook1, name)
  
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 12 for calling a global function with example usage: test_hookimpl(name, val) without return types