class_docstr: A `Dataset` that generates elements by invoking a function.
class_docstr_tok: ["A","`","Dataset","`","that","generates","elements","by","invoking","a","function","."]
code: def element_spec(self):
      return self._output_signature
  
file_path: tensorflow/tensorflow/python/data/ops/from_generator_op.py
imports: import numpy
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import structured_function
  from tensorflow.python.data.util import nest
  from tensorflow.python.data.util import structure
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import gen_dataset_ops
  from tensorflow.python.ops import script_ops
label_desc: Use image node_id 2 for calling the _GeneratorDataset obj's underlying member method code with example usage: obj.element_spec() and returns: self