code: def sample_batch_by_index(self, batch_idx):
      obs = self.obs[batch_idx]
      reward = self.reward[batch_idx]
      action = self.action[batch_idx]
      next_obs = self.next_obs[batch_idx]
      terminal = self.terminal[batch_idx]
      return obs, action, reward, next_obs, terminal
  
file_path: PARL/examples/NeurIPS2019-Learn-to-Move-Challenge/replay_memory.py
imports: import numpy
  from parl.utils import logger
label_desc: Use image node_id 4 for calling the ReplayMemory obj's underlying member method code with example usage: obj.sample_batch_by_index(batch_idx) and returns: obs,  action,  reward,  next_obs,  terminal