code: def __init__(self, limit, **kwargs):
      super(SequentialMemory, self).__init__(**kwargs)
  
      self.limit = limit
  
      # Do not use deque to implement the memory. This data structure may seem convenient but
      # it is way too slow on random access. Instead, we use our own ring buffer implementation.
      self.actions = RingBuffer(limit)
      self.rewards = RingBuffer(limit)
      self.terminals = RingBuffer(limit)
      self.observations = RingBuffer(limit)
  
imports: from __future__ import absolute_import
  from collections import deque, namedtuple
  import warnings
  import random
  import numpy
label_desc: Use image node_id 1 to create a new SequentialMemory object from inherited base classes: Memory with example: obj = SequentialMemory(limit)