docstr: append a new experience into replay memory
          
docstr_tok: ["append","a","new","experience","into","replay","memory"]
code: def append(self, exp):
      """append a new experience into replay memory"""
      if self._curr_size < self.max_size:
          self._assign(self._curr_pos, exp)
          self._curr_size += 1
      else:
          self._assign(self._curr_pos, exp)
      self._curr_pos = (self._curr_pos + 1) % self.max_size
      if exp.isOver:
          self._context.clear()
      else:
          self._context.append(exp)
  
file_path: PARL/benchmark/torch/dqn/replay_memory.py
imports: import numpy
  import copy
  from collections import deque, namedtuple
label_desc: Use image node_id 2 for calling the ReplayMemory obj's underlying member method code with example usage: obj.append(exp) without return types