@staticmethod<EOL><INDENT>def from_value(value):<DEDENT>
result = TokenKind._value_map.get(value, None)<EOL>if result is None:<EOL><INDENT>raise ValueError('<STR_LIT>' % value)<EOL><DEDENT>return result<EOL>
Obtain a registered TokenKind instance from its value.