def fuzzy_bool(x):
    if x is None:
        return None
    if x in (True, False):
        return bool(x)
Return True, False or None according to x.
dataset/ETHPy150Open sympy/sympy/sympy/core/logic.py/fuzzy_bool