parameters: (self, player)
docstring: Returns a list of legal actions for player and MFG nodes.
docstring_summary: Returns a list of legal actions for player and MFG nodes.
docstring_tokens: Returns a list of legal actions for player and MFG nodes .
function: def _legal_actions(self, player):
      """Returns a list of legal actions for player and MFG nodes."""
      if player == pyspiel.PlayerId.MEAN_FIELD:
        return []
      if (player == pyspiel.PlayerId.DEFAULT_PLAYER_ID
          and player == self.current_player()):
        return [0, 1, 2]
      raise ValueError(f"Unexpected player {player}. "
                       "Expected a mean field or current player 0.")
function_tokens: def _legal_actions ( self , player ) : if player == pyspiel . PlayerId . MEAN_FIELD : return [ ] if ( player == pyspiel . PlayerId . DEFAULT_PLAYER_ID and player == self . current_player ( ) ) : return [ 0 , 1 , 2 ] raise ValueError ( f"Unexpected player {player}. " "Expected a mean field or current player 0." )