class_docstr: Represents worker-distributed datasets created from dataset function.
class_docstr_tok: ["Represents","worker-distributed","datasets","created","from","dataset","function","."]
docstr: The type specification of an element of this dataset.
  
  This property is subject to change without notice.
docstr_tok: ["The","type","specification","of","an","element","of","this","dataset",".","This","property","is","subject","to","change","without","notice","."]
code: def element_spec(self):
      """The type specification of an element of this dataset.
  
      This property is subject to change without notice.
      """
      if not isinstance(self._dataset_fn, tf_function.ConcreteFunction):
          raise NotImplementedError(
              "`element_spec` is not supported when the `dataset_fn` is not "
              "a `ConcreteFunction`."
          )
      return self._dataset_fn.structured_outputs.element_spec
  
imports: import threading
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops.options import ExternalStatePolicy
  from tensorflow.python.distribute import input_lib
  from tensorflow.python.distribute.coordinator import remote_value
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import function
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_dataset_ops
  from tensorflow.python.ops import gen_experimental_dataset_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 4 for calling the PerWorkerDatasetFromDatasetFunction obj's underlying member method code with example usage: obj.element_spec() and returns: self