def get_tags_for_deliverable(team_data, team, name):
    """Return the tags for the deliverable owned by the team."""
    if team not in team_data:
        return set()
    team_info = team_data[team]
    dinfo = team_info['deliverables'].get(name)
    if not dinfo:
        return set()
    return set(dinfo.get('tags', [])).union(set(team_info.get('tags', [])))
