def contains_sublist(lst, sublst):
    n = len(sublst)
    return any((sublst == lst[i:i + n]) for i in range(len(lst) - n + 1))
Check if one list contains the items from another list (in the same order).
dataset/ETHPy150Open paylogic/pip-accel/pip_accel/utils.py/contains_sublist