def is_one_to_one(table):
    """A staticmethod that takes a codon table as a dictionary and returns
        True if it represents a One-To-One genetic code and False otherwise.

        A one-to-one code is defined as a code in which every amino acid is
        represented with exactly one codon. This defines an unambiguous
        mapping of protein sequence to corresponding DNA sequence.

    Parameters
    ----------
    dict table: a python dict representing the codon table

    Returns
    -------
    bool one2one: boolean; True if One-To-One, and False otherwise
    """
    # declare storage dict to count amino acid number
    aa_set = set(aa for aa in table.values())
    aa_counts = {aa: 0 for aa in aa_set}
    # count number of amino acids
    for aa in table.values():
        aa_counts[aa] += 1
    # iterate through dictionary and check counts
    one2one = True
    for aa, count in aa_counts.items():
        # skip stop and null signals:
        if aa in {'*', '0'}:
            continue
        elif count > 1:
            one2one = False
            break
    return one2one