def contains_subsequence(seq, subseq):
    for i in range(len(seq) - len(subseq)):
        if seq[i:i + len(subseq)] == subseq:
            return True
    return False
dataset/ETHPy150Open adurdin/platformgen/util.py/contains_subsequence/original