code: def test_hookwrapper_exception(exc):
      out = []
  
      @hookimpl(hookwrapper=True)
      def m1():
          out.append("m1 init")
          yield None
          out.append("m1 finish")
  
      @hookimpl
      def m2():
          raise exc
  
      with pytest.raises(exc):
          MC([m2, m1], {})
      assert out == ["m1 init", "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 12 for calling a global function with example usage: test_hookwrapper_exception(exc) without return types