<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_labels(term_ids: list) -> dict: """Get term labels given term ids This only takes the first term returned for a term_id so use the unique term_id for a term not an alternate id that might not be unique. """

    term_labels = {}
    for term_id in term_ids:
        term = get_terms(term_id)
        term_labels[term_id] = term[0].get("label", "")

    return term_labels