def validate_string_or_none(option, value):
 if (value is None):
  return value
 return validate_string(option, value)

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 .