def is_list(value):

    if value is None:
        return

    if not isinstance(value, list):
        return c('list')
Ensure the given value is a list.
dataset/ETHPy150Open heiskr/sagefy/server/modules/validations.py/is_list