def METHOD_NAME(self, batch_size):
    ret, self.batch = [], batch_size
    for i in range(batch_size):
        if i >= len(self.next):
            break
        if self.space.is_index_valid(self.next[i][0]):
            ret.append(self.space.get(self.next[i][0]))
    return ret