def is_boolean(value):

    if value is None:
        return

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