def _retrieve_all_teams(self, year):
team_data_dict = {}<EOL>if not year:<EOL><INDENT>year = utils._find_year_for_season('<STR_LIT>')<EOL><DEDENT>doc = pq(SEASON_PAGE_URL % year)<EOL>teams_list = utils._get_stats_table(doc, '<STR_LIT>')<EOL>opp_teams_list = utils._get_stats_table(doc,<EOL>'<STR_LIT>')<EOL>for stats_list in [teams_list, opp_teams_list]:<EOL><INDENT>team_data_dict = self._add_stats_data(stats_list, team_data_dict)<EOL><DEDENT>for team_data in team_data_dict.values():<EOL><INDENT>team = Team(team_data['<STR_LIT:data>'], team_data['<STR_LIT>'], year)<EOL>self._teams.append(team)<EOL><DEDENT>
Find and create Team instances for all teams in the given season.

For a given season, parses the specified NBA stats table and finds all
requested stats. Each team then has a Team instance created which
includes all requested stats and a few identifiers, such as the team's
name and abbreviation. All of the individual Team instances are added
to a list.

Note that this method is called directly once Teams is invoked and does
not need to be called manually.

Parameters
----------
year : string
    The requested year to pull stats from.