def BOOL(value):  # noqa: N802
    if value in ('1', '0'):
        return bool(int(value))
    raise ValueError('%r is not 0 or 1' % value)
Output json for priority field
dataset/ETHPy150Open mopidy/mopidy/mopidy/mpd/protocol/__init__.py/BOOL--crossover with--dataset/ETHPy150Open sahana/eden/controllers/cap.py/set_priority_js