def sequence_kmers(sequence, kmer_canonical, k):
    """Returns a set of canonical kmers of length k from
    the sequence

    Args:
        sequence (str): Sequencing read
        kmer_canonical (dict): Hashmap of kmer as key
            and its canonical kmer as the value
        k (int): Length of kmer

    Returns:
        set: Seq of canonical kmers present in the read
    """
    sequence_kmer_set = set()
    for i in range(len(sequence) - k + 1):
        kmer = sequence[i:i + k]        
        sequence_kmer_set.add(kmer_canonical[kmer])

    return sequence_kmer_set