parameters: (self, policies, num_episodes)
return_statement: return totals / num_episodes
docstring: Samples episodes and averages their returns.
  
      Args:
        policies: A list of policies representing the policies executed by each
          player.
        num_episodes: Number of episodes to execute to estimate average return of
          policies.
  
      Returns:
        Average episode return over num episodes.
docstring_summary: Samples episodes and averages their returns.
docstring_tokens: Samples episodes and averages their returns .
function: def sample_episodes(self, policies, num_episodes):
      """Samples episodes and averages their returns.
  
      Args:
        policies: A list of policies representing the policies executed by each
          player.
        num_episodes: Number of episodes to execute to estimate average return of
          policies.
  
      Returns:
        Average episode return over num episodes.
      """
      totals = np.zeros(self._num_players)
      for _ in range(num_episodes):
        totals += sample_episode(self._game.new_initial_state(),
                                 policies).reshape(-1)
      return totals / num_episodes
function_tokens: def sample_episodes ( self , policies , num_episodes ) : totals = np . zeros ( self . _num_players ) for _ in range ( num_episodes ) : totals += sample_episode ( self . _game . new_initial_state ( ) , policies ) . reshape ( - 1 ) return totals / num_episodes