def as_tuple(value):
    if isinstance(value, tuple):
        return value
    return tuple(as_list(value))
Smart cast value to tuple by splittng the input on ",".
dataset/ETHPy150Open funkybob/django-classy-settings/cbs/utils.py/as_tuple