def cast_unicode(s, encoding='utf8', errors='replace'):  # NOQA
        if isinstance(s, bytes):
            return s.decode(encoding, errors=errors)
        return str(s)
Validates a timeout specified in milliseconds returning
dataset/ETHPy150Open circus-tent/circus/circus/py3compat.py/cast_unicode--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_timeout_or_zero