def METHOD_NAME(self, protocol):
    """@brief Send SWJ sequence to select chosen wire protocol.
    The `use_dormant` property determines whether dormant mode will be used for the protocol selection, or
    if the deprecated ADIv5.0 SWJ sequences will be used.
    @param self This object.
    @param protocol One of the @ref pyocd.probe.debug_probe.DebugProbe.Protocol DebugProbe.Protocol enums, except
        that `DEFAULT` is not acceptable and will cause a ValueError exception to be raised.
    @exception ValueError Request to select the `DEFAULT` protocol.
    """
    # Not all probes support sending SWJ sequences.
    assert isinstance(protocol, DebugProbe.Protocol)
    if protocol == DebugProbe.Protocol.SWD:
        self.switch_to_swd()
    elif protocol == DebugProbe.Protocol.JTAG:
        self.switch_to_jtag()
    elif protocol == DebugProbe.Protocol.DEFAULT:
        raise ValueError("cannot send SWJ sequence for default protocol")
    else:
        assert False, "unhandled protocol %s in SWJSequenceSender" % protocol