class_docstr: Abstract class for Replay Buffer.
  
  Args:
      env_spec (EnvSpec): Environment specification.
      size_in_transitions (int): total size of transitions in the buffer
      time_horizon (int): time horizon of epsiode.
docstr: Add multiple transitions into the replay buffer.
  
  A transition contains one or multiple entries, e.g.
  observation, action, reward, terminal and next_observation.
  The same entry of all the transitions are stacked, e.g.
  {'observation': [obs1, obs2, obs3]} where obs1 is one
  numpy.ndarray observation from the environment.
  
  Args:
      kwargs (dict(str, [numpy.ndarray])): Dictionary that holds
          the transitions.
docstr_tok: ["Add","multiple","transitions","into","the","replay","buffer",".","A","transition","contains","one","or","multiple","entries",",","e.g",".","observation",",","action",",","reward",",","terminal","and","next_observation",".","The","same","entry","of","all","the","transitions","are","stacked",",","e.g",".","{","'observation","'",":","[","obs1",",","obs2",",","obs3","]","}","where","obs1","is","one","numpy.ndarray","observation","from","the","environment",".","Args",":","kwargs","(","dict","(","str",",","[","numpy.ndarray","]",")",")",":","Dictionary","that","holds","the","transitions","."]
code: def add_transitions(self, **kwargs):
      """Add multiple transitions into the replay buffer.
  
      A transition contains one or multiple entries, e.g.
      observation, action, reward, terminal and next_observation.
      The same entry of all the transitions are stacked, e.g.
      {'observation': [obs1, obs2, obs3]} where obs1 is one
      numpy.ndarray observation from the environment.
  
      Args:
          kwargs (dict(str, [numpy.ndarray])): Dictionary that holds
              the transitions.
  
      """
      if not self._initialized_buffer:
          self._initialize_buffer(**kwargs)
  
      for key, value in kwargs.items():
          self._episode_buffer[key].append(value)
  
      if len(self._episode_buffer["observation"]) == self._time_horizon:
          self.store_episode()
          for key in self._episode_buffer:
              self._episode_buffer[key].clear()
  
file_path: garage/src/garage/replay_buffer/replay_buffer.py
imports: import abc
  from abc import abstractmethod
  import numpy
label_desc: Use image node_id 5 for calling the ReplayBuffer obj's underlying member method code with example usage: obj.add_transitions() without return types