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