class_docstr: Wrap a generator to a DataFlow.
  The dataflow will not have length.
class_docstr_tok: ["Wrap","a","generator","to","a","DataFlow",".","The","dataflow","will","not","have","length","."]
docstr: Args:
      gen: iterable, or a callable that returns an iterable
docstr_tok: ["Args",":","gen",":","iterable",",","or","a","callable","that","returns","an","iterable"]
code: def __init__(self, gen):
      """
      Args:
          gen: iterable, or a callable that returns an iterable
      """
      self._gen = gen
  
imports: import copy
  import numpy
  import six
  from .base import DataFlow, RNGDataFlow
label_desc: Use image node_id 1 to create a new DataFromGenerator object from inherited base classes: DataFlow with example: obj = DataFromGenerator(gen)