def METHOD_NAME(text: str) -> RdataType:
    """Convert text into a DNS rdata type value.
    The input text can be a defined DNS RR type mnemonic or
    instance of the DNS generic type syntax.
    For example, "NS" and "TYPE2" will both result in a value of 2.
    Raises ``dns.rdatatype.UnknownRdatatype`` if the type is unknown.
    Raises ``ValueError`` if the rdata type value is not >= 0 and <= 65535.
    Returns a ``dns.rdatatype.RdataType``.
    """
    return RdataType.METHOD_NAME(text)