code: def test_yield_reraise(self):
      def reraise():
          try:
              raise TypeError("foo")
          except:
              yield 1
              raise
  
      g = reraise()
      next(g)
      self.assertRaises(TypeError, lambda: next(g))
      self.assertRaises(StopIteration, lambda: next(g))
  
imports: from test import support
  import sys
  import types
  import unittest
label_desc: Use image node_id 9 for calling the TestRaise obj's underlying member method code with example usage: obj.test_yield_reraise() without return types