def get_labels(term_ids: list) -> dict:
term_labels = {}<EOL>for term_id in term_ids:<EOL><INDENT>term = get_terms(term_id)<EOL>term_labels[term_id] = term[<NUM_LIT:0>].get("<STR_LIT:label>", "<STR_LIT>")<EOL><DEDENT>return term_labels<EOL>
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.