def validate_boolean(option, value):
    if isinstance(value, bool):
        return value
    raise TypeError("%s must be True or False" % (option,))
Only load the redis connection if we use it
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_boolean--crossover with--dataset/ETHPy150Open tschellenbach/Stream-Framework/stream_framework/storage/redis/structures/base.py/RedisCache.get_redis