def read_fasta_file_as_list_of_pairs(file_name: str) -> list:
    """
    Read a file in FASTA format as list of pairs (sequence id, sequence).

    :param file_name: FASTA file.
    :return: List of pairs.
    """
    list_of_pairs = []
    key = ''
    value = ''

    with open(file_name, 'r') as file:
        for line in file:
            if line[0] == '>':
                if key != '':
                    list_of_pairs.append((key, value))
                key = line[1:].rstrip()
                value = ''
            else:
                value += line.rstrip()

    list_of_pairs.append((key, value))
    return list_of_pairs