<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_fragment_lengths(fastafile):
 """Returns dictionary of sequence fragment lengths, keyed by fragment ID. Biopython's SeqIO module is used to parse all sequences in the FASTA file. NOTE: ambiguity symbols are not discounted. """

    fraglengths = {}
    for seq in SeqIO.parse(fastafile, "fasta"):
        fraglengths[seq.id] = len(seq)
    return fraglengths