code: def test_adding_wrappers_ordering_tryfirst(
      hc: _HookCaller, addmeth: AddMeth
  ) -> None:
      @addmeth(hookwrapper=True, tryfirst=True)
      def he_method1():
          yield
  
      @addmeth(hookwrapper=True)
      def he_method2():
          yield
  
      @addmeth(wrapper=True, tryfirst=True)
      def he_method3():
          yield
  
      assert funcs(hc.get_hookimpls()) == [
          he_method2,
          he_method1,
          he_method3,
      ]
  
imports: from typing import Callable
  from typing import List
  from typing import Sequence
  from typing import TypeVar
  import pytest
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
  from pluggy import PluginValidationError
  from pluggy._hooks import _HookCaller
  from pluggy._hooks import HookImpl
label_desc: Use image node_id 10 for calling a global function with example usage: test_adding_wrappers_ordering_tryfirst(hc, addmeth) without return types