class_docstr: Iterator for a single DistributedDatasetV1 instance.
class_docstr_tok: ["Iterator","for","a","single","DistributedDatasetV1","instance","."]
docstr: Initialize underlying iterator.
  
  In eager execution, this simply recreates the underlying iterator.
  In graph execution, it returns the initializer ops for the underlying
  iterator.
  
  Returns:
    A list of any initializer ops that should be run.
code: def initialize(self):
      """Initialize underlying iterator.
  
      In eager execution, this simply recreates the underlying iterator.
      In graph execution, it returns the initializer ops for the underlying
      iterator.
  
      Returns:
        A list of any initializer ops that should be run.
      """
      if ops.executing_eagerly_outside_functions():
          self._iterator._eager_reset()  # pylint: disable=protected-access
          return []
      else:
          return [self._iterator.initializer]
  
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 2 for calling the _SingleWorkerDatasetIterator obj's underlying member method code with example usage: obj.initialize() and returns: list, list