code: def test_hookwrapper_order():
      out = []
  
      @hookimpl(hookwrapper=True)
      def m1():
          out.append("m1 init")
          yield 1
          out.append("m1 finish")
  
      @hookimpl(hookwrapper=True)
      def m2():
          out.append("m2 init")
          yield 2
          out.append("m2 finish")
  
      res = MC([m2, m1], {})
      assert res == []
      assert out == ["m1 init", "m2 init", "m2 finish", "m1 finish"]
  
file_path: catboost/contrib/python/pluggy/py2/tests/test_multicall.py
imports: import pytest
  from pluggy import HookCallError, HookspecMarker, HookimplMarker
  from pluggy.hooks import HookImpl
  from pluggy.callers import _multicall, _legacymulticall
label_desc: Use image node_id 9 for calling a global function with example usage: test_hookwrapper_order() without return types