def get_team_from_game(game, home_road):
    """
    Gets abbreviation for team associated with specified
    home/road denominator.
    """
    if home_road in ['home']:
        return game['home_abbr']
    elif home_road in ['road', 'visitor']:
        return game['road_abbr']
    else:
        return None