code: def __init__(self, gen):
      self.__wrapped = gen
      self.__isgen = gen.__class__ is GeneratorType
      self.__name__ = getattr(gen, "__name__", None)
      self.__qualname__ = getattr(gen, "__qualname__", None)
  
imports: import sys
label_desc: Use image node_id 1 to create a new _GeneratorWrapper object  with example: obj = _GeneratorWrapper(gen)