def convert_episode_to_batch_major(episode):
episode_batch = {}<EOL>for key in episode.keys():<EOL><INDENT>val = np.array(episode[key]).copy()<EOL>episode_batch[key] = val.swapaxes(<NUM_LIT:0>, <NUM_LIT:1>)<EOL><DEDENT>return episode_batch<EOL>
Converts an episode to have the batch dimension in the major (first)
    dimension.