'Sample batch of steps from policy.'

def sample_step(self, sess, single_observation, internal_state, single_action, greedy=False):

    if greedy:
        outputs = [self.greedy_next_internal_state, self.greedy_sampled_actions]
    else:
        outputs = [self.next_internal_state, self.sampled_actions]
    feed_dict = {self.internal_state: internal_state}
    for (action_place, action) in zip(self.single_action, single_action):
        feed_dict[action_place] = action
    for (obs_place, obs) in zip(self.single_observation, single_observation):
        feed_dict[obs_place] = obs
    return sess.run(outputs, feed_dict=feed_dict)
