code: def testSingleDeterministicPassAsDataset(self):
      replay_buffer = self._create_rb_and_add_3N_episodes()
      with self.cached_session() as session:
          pass
      itr = iterator_from_dataset(
          replay_buffer, single_deterministic_pass=True, session=session
      )
  
      tf.nest.map_structure(
          self.assertAllEqual, {"a": _a([1, 10, 100])}, next(itr)
      )
      tf.nest.map_structure(
          self.assertAllEqual,
          {"a": _a([2, 20, 200, 3, 30, 300])},
          next(itr),
      )
      tf.nest.map_structure(
          self.assertAllEqual, {"a": _a([-1, -10, -100])}, next(itr)
      )
      with self.assertRaises(
          (tf.errors.OutOfRangeError, StopIteration)
      ):
          next(itr)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents import specs
  from tf_agents.replay_buffers import episodic_replay_buffer
  from tf_agents.utils import common
  from tf_agents.utils import test_utils
  from tensorflow.python.ops import list_ops
label_desc: Use image node_id 31 for calling the EpisodicReplayBufferTest obj's underlying member method code with example usage: obj.testSingleDeterministicPassAsDataset() without return types