code: def __init__(self, max_size, obs_shape, context_len):
      self.max_size = int(max_size)
      self.obs_shape = obs_shape
      self.context_len = int(context_len)
  
      self.obs = np.zeros((self.max_size,) + obs_shape, dtype="uint8")
      self.action = np.zeros((self.max_size,), dtype="int32")
      self.reward = np.zeros((self.max_size,), dtype="float32")
      self.isOver = np.zeros((self.max_size,), dtype="bool")
  
      self._curr_size = 0
      self._curr_pos = 0
      self._context = deque(maxlen=context_len - 1)
  
file_path: PARL/examples/DQN_variant/replay_memory.py
imports: import numpy
  import copy
  from collections import deque, namedtuple
label_desc: Use image node_id 1 to create a new ReplayMemory object from inherited base classes: object with example: obj = ReplayMemory(max_size, obs_shape, context_len)