6.2.3.2. check_phases_separated

check_phases_separated(x)[source]
>>> bags = [
    [3, 2, 3, 2, 4, 4, 1, 1], # INVALID!
    [3, 2, 2, 2, 4, 4, 1, 4], # INVALID!
    [3, 3, 2, 2, 4, 4, 1, 1], # valid
    ['P1', 'P3', 'P3', 'P2'], # valid
    [False, False],           # valid
    [],                       # valid
]
>>> [check_phases_separated(x) for x in bags]
[False, False, True, True, True, True]