code: def __init__(self, gen_func, mode):
      self.source = gen_func
      self.signaling = mode == "raise"
  
imports: from enum import Enum
  from nvidia.dali import types
  from nvidia.dali import tensors
  import inspect
  import functools
label_desc: Use image node_id 1 to create a new _CycleGenFunc object  with example: obj = _CycleGenFunc(gen_func, mode)