def as_list(value):
    if isinstance(value, (list, tuple)):
        return value
    if not value:
        return []
    for c in '\n ':
        if c in value:
            value = value.split(c)
            return [v.strip() for v in value if v.strip()]
    return [value]
Given a list of (user, can_change, can_delete, can_frobnicate) tuples
dataset/ETHPy150Open gawel/irc3/irc3/utils.py/as_list--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailcore/tests/test_permission_policies.py/PermissionPolicyTestUtils.assertUserInstancePermissionMatrix