class_docstr: Wrapper of OutOfGraphReplayBuffer with an in graph sampling mechanism.
  
  Usage:
    To add a transition:  call the add function.
  
    To sample a batch:    Construct operations that depend on any of the
                          tensors is the transition dictionary. Every sess.run
                          that requires any of these tensors will sample a new
                          transition.
docstr: Unpacks the given transition into member variables.
  
  Args:
    transition_tensors: tuple of tf.Tensors.
    transition_type: tuple of ReplayElements matching transition_tensors.
docstr_tok: ["Unpacks","the","given","transition","into","member","variables",".","Args",":","transition_tensors",":","tuple","of","tf.Tensors",".","transition_type",":","tuple","of","ReplayElements","matching","transition_tensors","."]
code: def unpack_transition(self, transition_tensors, transition_type):
      """Unpacks the given transition into member variables.
  
      Args:
        transition_tensors: tuple of tf.Tensors.
        transition_type: tuple of ReplayElements matching transition_tensors.
      """
      self.transition = collections.OrderedDict()
      for element, element_type in zip(
          transition_tensors, transition_type
      ):
          self.transition[element_type.name] = element
  
      # TODO(bellemare): These are legacy and should probably be removed in
      # future versions.
      self.states = self.transition["state"]
      self.actions = self.transition["action"]
      self.rewards = self.transition["reward"]
      self.next_states = self.transition["next_state"]
      self.next_actions = self.transition["next_action"]
      self.next_rewards = self.transition["next_reward"]
      self.terminals = self.transition["terminal"]
      self.indices = self.transition["indices"]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import gzip
  import math
  import os
  import pickle
  from absl import logging
  import gin.tf
  import numpy
  import tensorflow
label_desc: Use image node_id 6 for calling the WrappedReplayBuffer obj's underlying member method code with example usage: obj.unpack_transition(transition_tensors, transition_type) without return types