code: def sample(self, batch_size) -> List[namedtuple]:
      return random.sample(self.memory, batch_size)
  
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 3 for calling the ReplayMemory obj's underlying member method code with example usage: obj.sample(batch_size) and returns: random