class_docstr: Inputs created from dataset function.
class_docstr_tok: ["Inputs","created","from","dataset","function","."]
code: def __iter__(self):
      if (
          ops.executing_eagerly_outside_functions()
          or ops.get_default_graph().building_function
      ):
          return self._get_iterator()
  
      raise RuntimeError(
          "__iter__() is only supported inside of tf.function "
          "or when eager execution is enabled."
      )
  
imports: from tensorflow.python.data.experimental.ops import cardinality
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import multi_device_iterator_ops
  from tensorflow.python.data.ops import optional_ops
  from tensorflow.python.distribute import input_lib
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.types import data
  from tensorflow.python.util.deprecation import deprecated
label_desc: Use image node_id 4 for calling the DistributedDatasetsFromFunctionV1 obj's underlying member method code with example usage: obj.__iter__() and returns: self