parameters: (value)
return_statement: return result
docstring: Obtain a registered TokenKind instance from its value.
docstring_summary: Obtain a registered TokenKind instance from its value.
docstring_tokens: Obtain a registered TokenKind instance from its value .
function: def from_value(value):
          """Obtain a registered TokenKind instance from its value."""
          result = TokenKind._value_map.get(value, None)
  
          if result is None:
              raise ValueError('Unknown TokenKind: %d' % value)
  
          return result
function_tokens: def from_value ( value ) : result = TokenKind . _value_map . get ( value , None ) if result is None : raise ValueError ( 'Unknown TokenKind: %d' % value ) return result