def METHOD_NAME(value: Rcode, tsig: bool = False) -> str:
    """Convert rcode into text.
    *value*, a ``dns.rcode.Rcode``, the rcode.
    Raises ``ValueError`` if rcode is < 0 or > 4095.
    Returns a ``str``.
    """
    if tsig and value == Rcode.BADVERS:
        return "BADSIG"
    return Rcode.METHOD_NAME(value)