code: def contains_sublist(lst, sublst):
      
      n = len(sublst)
      return any((sublst == lst[i:i + n]) for i in range(len(lst) - n + 1))
docs: Check if one list contains the items from another list (in the same order).
  
      :param lst: The main list.
      :param sublist: The sublist to check for.
      :returns: :data:`True` if the main list contains the items from the
                sublist in the same order, :data:`False` otherwise.
  
      Based on `this StackOverflow answer <http://stackoverflow.com/a/3314913>`_.