class_docstr: Distributed dataset that supports prefetching to multiple devices.
class_docstr_tok: ["Distributed","dataset","that","supports","prefetching","to","multiple","devices","."]
docstr: Get an iterator for DistributedDatasetV1.
code: def _make_one_shot_iterator(self):
      """Get an iterator for DistributedDatasetV1."""
      # Graph mode with one shot iterator is disabled because we have to call
      # `initialize` on the iterator which is only required if we are using a
      # tf.distribute strategy.
      if not context.executing_eagerly():
          raise ValueError(
              "Cannot create a one shot iterator. Please use "
              "`make_initializable_iterator()` instead."
          )
      return self._get_iterator()
  
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 3 for calling the DistributedDatasetV1 obj's underlying member method code with example usage: obj._make_one_shot_iterator() and returns: self