'Obtain a registered TokenKind instance from its value.'

@staticmethod
def from_value(value):

    result = TokenKind._value_map.get(value, None)
    if (result is None):
        raise ValueError(('Unknown    TokenKind:    %d' % value))
    return result
