code: def iter_with_exception():
      yield 1
      yield 2
      raise Exception
      yield 3
  
imports: import unittest
  import time
  from iterators import TimeoutIterator
label_desc: Use image node_id 3 for calling a global function with example usage: iter_with_exception() without return types