code: def test_adding_wrappers_ordering(hc, addmeth):
      @addmeth(hookwrapper=True)
      def he_method1():
          pass
  
      @addmeth()
      def he_method1_middle():
          pass
  
      @addmeth(hookwrapper=True)
      def he_method3():
          pass
  
      assert funcs(hc._nonwrappers) == [he_method1_middle]
      assert funcs(hc._wrappers) == [he_method1, he_method3]
  
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 9 for calling a global function with example usage: test_adding_wrappers_ordering(hc, addmeth) without return types