def get_uniprot_to_dcid(file_path):
    """
    Args:
        file_path for the 'uniprot_to_dcid.txt'.
    Returns:
        A dict mapping UniProt entry to protein DCID in Data Commons.
        example: {'O43657': 'TSN6_HUMAN'}
    """
    with open(file_path, 'r') as file:
        lines = file.read().split('\n')
    uniprot_to_dcid = {}
    #lines[0] is the column names and lines[-1] is ''.
    for line in lines[1:-1]:
        line_split = line.split('\t')
        uniprot = line_split[0]
        dcid = line_split[2]

        # multiple uniprot entry maps to one entry name
        if ',' in uniprot:
            uniprots = uniprot.split(',')
            for uni in uniprots:
                uniprot_to_dcid[uni] = dcid
        else:
            uniprot_to_dcid[uniprot] = dcid
    return uniprot_to_dcid