code: def clear(self):
          
          self.states[:] = 0
          self.actions[:] = 0
          self.rewards[:] = 0
          self.terminate_flags[:] = 0
          self.top = 0
          self.size = 0
docs: Clear all contents in the relay memory