def is_none_string(val):
    if not isinstance(val, six.string_types):
        return False

    return val.lower() == 'none'
Check if a string represents a None value.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/utils.py/is_none_string