code: def __init__(self, size):
      self.size = size
      self.idx = 0
      self.memory = np.zeros(size, dtype=object)
  
file_path: dynet/examples/reinforcement-learning/memory.py
imports: import numpy
  from math import log, ceil
  from reduce_tree import ReduceTree, SumTree
label_desc: Use image node_id 1 to create a new Memory object from inherited base classes: object with example: obj = Memory(size)