def get_remapped_cuis(retired_cui_file_name: str) -> dict:
    """
    Creates a dictionary of retired CUIs and the current CUIs they map to in UMLS; currently only includes remappings
    labeled as a 'synonym' (vs. 'broader', 'narrower', or 'other related').
    """
    remapped_cuis = dict()
    with open(retired_cui_file_name, 'r') as retired_cui_file:
        # Line format in MRCUI file: retired_cui|release|map_type|||remapped_cui|is_current|
        for line in retired_cui_file:
            row = line.split('|')
            map_type = row[2]
            is_current = row[6]
            old_cui = row[0]
            new_cui = row[5]
            # Only include the remapping if it's a 'synonym' (and is current)
            if map_type == 'SY' and is_current == 'Y' and new_cui != '':
                remapped_cuis[old_cui] = new_cui
    return remapped_cuis