<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _instantiate_players(self, player_dict):
 """ Create a list of player instances for both the home and away teams. For every player listed on the boxscores page, create an instance of the BoxscorePlayer class for that player and add them to a list of players for their respective team. Parameters player_dict : dictionary A dictionary containing information for every player on the boxscores page. Each key is a string containing the player's ID and each value is a dictionary with the player's full name, a string representation of their HTML stats, and a string constant denoting which team they play for as the values. Returns ------- tuple Returns a ``tuple`` in the format (away_players, home_players) where each element is a list of player instances for the away and home teams, respectively. """

        home_players = []
        away_players = []
        for player_id, details in player_dict.items():
            player = BoxscorePlayer(player_id,
                                    details['name'],
                                    details['data'])
            if details['team'] == HOME:
                home_players.append(player)
            else:
                away_players.append(player)
        return away_players, home_players