code: def __init__(
      self, capacity: int, transition_type: namedtuple = Transition
  ):
      self.capacity = capacity
      self.Transition = transition_type
  
      self.memory = []
      self.position = 0
  
file_path: tensortrade/tensortrade/agents/replay_memory.py
imports: from deprecated import deprecated
  import random
  from collections import namedtuple
  from typing import List
label_desc: Use image node_id 1 to create a new ReplayMemory object from inherited base classes: object with example: obj = ReplayMemory(capacity, transition_type)