parameters: (game_results, num_checkpts)
return_statement: return payoff_matrices
docstring: Packages dictionary of game results into a payoff tensor.
  
    Args:
      game_results: dictionary of payoffs for each game evaluated
      num_checkpts: int, number of strats (or ckpts) per player
    Returns:
      payoff_matrices: np.array (2 x num_checkpts x num_checkpts) with payoffs for
        two players (assumes symmetric game and only info for 2 players is needed
        for stochastic gradients)
docstring_summary: Packages dictionary of game results into a payoff tensor.
docstring_tokens: Packages dictionary of game results into a payoff tensor .
function: def form_payoff_matrices(game_results, num_checkpts):
    """Packages dictionary of game results into a payoff tensor.
  
    Args:
      game_results: dictionary of payoffs for each game evaluated
      num_checkpts: int, number of strats (or ckpts) per player
    Returns:
      payoff_matrices: np.array (2 x num_checkpts x num_checkpts) with payoffs for
        two players (assumes symmetric game and only info for 2 players is needed
        for stochastic gradients)
    """
    payoff_matrices = np.zeros((2, num_checkpts, num_checkpts))
    for profile, payoffs in game_results.items():
      i, j = profile[:2]
      payoff_matrices[:, i, j] = payoffs[:2]
    return payoff_matrices
function_tokens: def form_payoff_matrices ( game_results , num_checkpts ) : payoff_matrices = np . zeros ( ( 2 , num_checkpts , num_checkpts ) ) for profile , payoffs in game_results . items ( ) : i , j = profile [ : 2 ] payoff_matrices [ : , i , j ] = payoffs [ : 2 ] return payoff_matrices