def __find_team(teams, team_tricode):
    """
    Auxilary function to find the team that matches the tricode.

    Args:
        teams: list of NBA teams.
        team_tricode: the tricode of the given team.

    Returns:
        corresponding team for the given tricode
    """

    #team = key(full team names, example: Toronto Raptors) in the dictionary of teams
    for team in teams:
        if(teams[team].get_tricode() == team_tricode):
            #by returning team we are returning the name of the key in the list of teams which ends
            #up being the full name of the team
            return team