code: def generator():
      for i in range(2):
          yield i
      raise Exception("error")
  
imports: import ray
  from ray import DynamicObjectRefGenerator
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: generator() without return types