def ppo_loop_kwargs(args):
    """
    Convert parsed CLI arguments into parameters for a
    call to mpi_ppo_loop().

    Returns:
      A dict meant to be passed as kwargs to mpi_ppo_loop.
    """
    return {'horizon': args.ppo_horizon, 'lr': args.ppo_lr, 'num_iters':
        args.ppo_iters, 'reward_scale': args.ppo_reward_scale, 'save_path':
        args.save_path, 'save_interval': args.save_interval}
