@staticmethod
    def _parse_candidate(candidate):
        val = candidate
        if candidate is None:
            val = "null"
        elif candidate is True:
            val = "1"
        elif candidate is False:
            val = "0"
        return val
Parse filter candidates so that you can use None, True, False.
dataset/ETHPy150Open MediaMath/t1-python/terminalone/service.py/T1._parse_candidate