def split_sentinels(values):
    groups, current = [], []
    for value in values:
        if value is None:
            if current:
                groups.append(current)
                current = []
        else:
            current.append(value)
    if current:
        groups.append(current)
    return groups
