def save_repeat_fasta(tandem_repeats, file):
    """ save multiple <tandem_repeats> in Fasta format in specified <file>

        At current, only one TR per sequence can be defined, as the identifiers
        in the dict <tandem_repeats> must be unique.

        Parameters: Dict of tandem repeats and identifiers.
            e.g. {'ENSP00012': msa1, 'ENSP00013': msa2}

            >ID
            GHKI
            GHKI
            GH--
    """
    with open(file, 'w', newline='\n') as f:
        for identifier, msa in tandem_repeats.items():
            f.write('>{0}\n'.format(identifier))
            f.write('\n'.join(msa) + '\n\n')
