def validate_string_or_none(option, value):
    if value is None:
        return value
    return validate_string(option, value)
Validates that 'value' is an instance of `basestring` or `None`.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_string_or_none