docstr: Test for same behavior when the seed is a Python or Tensor zero.
docstr_tok: ["Test","for","same","behavior","when","the","seed","is","a","Python","or","Tensor","zero","."]
code: def testSeedZero(self):
      """Test for same behavior when the seed is a Python or Tensor zero."""
      iterator = dataset_ops.make_one_shot_iterator(
          dataset_ops.Dataset.range(10).shuffle(10, seed=0)
      )
      get_next = iterator.get_next()
  
      elems = []
      with self.cached_session() as sess:
          for _ in range(10):
              elems.append(sess.run(get_next))
          with self.assertRaises(errors.OutOfRangeError):
              sess.run(get_next)
  
      seed_placeholder = array_ops.placeholder(dtypes.int64, shape=[])
      iterator = dataset_ops.make_initializable_iterator(
          dataset_ops.Dataset.range(10).shuffle(
              10, seed=seed_placeholder
          )
      )
      get_next = iterator.get_next()
  
      with self.cached_session() as sess:
          sess.run(
              iterator.initializer, feed_dict={seed_placeholder: 0}
          )
          for elem in elems:
              self.assertEqual(elem, sess.run(get_next))
          with self.assertRaises(errors.OutOfRangeError):
              sess.run(get_next)
  
imports: import collections
  import functools
  import sys
  from absl.testing import parameterized
  import numpy
  from tensorflow.python import pywrap_sanitizers
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_management
  from tensorflow.python.data.experimental.ops import iterator_ops
  from tensorflow.python.data.experimental.ops import random_access
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 2 for calling the ShuffleTest obj's underlying member method code with example usage: obj.testSeedZero() without return types