#NEWLINE# def _assert_string_not_reserved( string , desc ) : #NEWLINE# #INDENT# 'Asserts that a string is not a reserved name.\n\n  Args:\n    string: string to check\n    desc: description of the string (used in error message)\n\n  Raises:\n    ValidationError: if the string is a reserved name\n  ' #NEWLINE# _assert_condition ( ( not _RESERVED_NAME_RE . match ( string ) ) , ( 'The %s "%s" is reserved.' % ( desc , string ) ) )