class_docstr: A deque based replay memory that accepts new memory entry and deletes
  oldest memory entry if exceeding the capacity. Memory entries are
  accessed in random order.
  
  Args:
      hparams (dict or HParams, optional): Hyperparameters. Missing
          hyperparameters are set to default values. See
          :meth:`default_hparams` for the defaults.
class_docstr_tok: ["A","deque","based","replay","memory","that","accepts","new","memory","entry","and","deletes","oldest","memory","entry","if","exceeding","the","capacity",".","Memory","entries","are","accessed","in","random","order",".","Args",":","hparams","(","dict","or","HParams",",","optional",")",":","Hyperparameters",".","Missing","hyperparameters","are","set","to","default","values",".","See",":","meth",":","`","default_hparams","`","for","the","defaults","."]
docstr: Randomly samples :attr:`size` entries from the memory. Returns
  a list.
docstr_tok: ["Randomly","samples",":","attr",":","`","size","`","entries","from","the","memory",".","Returns","a","list","."]
code: def get(self, size):
      """Randomly samples :attr:`size` entries from the memory. Returns
      a list.
      """
      return random.sample(self.deque, size)
  
file_path: texar/texar/tf/core/replay_memories.py
imports: from collections import deque
  import random
  from texar.tf.hyperparams import HParams
label_desc: Use image node_id 4 for calling the DequeReplayMemory obj's underlying member method code with example usage: obj.get(size) and returns: random