def rhs_contains(list_to_search, sublist):
  """Returns True if sublist is contained in list_to_search."""
  if len(sublist) > len(list_to_search):
    return False
  for idx in range(len(list_to_search) - len(sublist) + 1):
    if list_to_search[idx:idx + len(sublist)] == sublist:
      return True
  return False