def set_mnemonic(self, mnemonic, passphrase=None, temporary_wallet=False):
        """
        RPC call to set the wallet mnemonic (in RAM only - flash storage is untouched).
        NOTE: Only available in a DEBUG build of the firmware.

        Parameters
        ----------
        mnemonic : str
            The wallet mnemonic to set.

        passphrase : str, optional
            Any bip39 passphrase to apply.
            Defaults to None.

        temporary_wallet : bool, optional
            Whether to treat this wallet/mnemonic as an 'Emergency Restore' temporary wallet, as
            opposed to one successfully loaded from the flash storage.
            NOTE: in either case the wallet is only set in RAM, and flash storage is not affected.
            Defaults to False.

        Returns
        -------
        bool
            True on success.
        """
        params = {'mnemonic': mnemonic, 'passphrase': passphrase,
                  'temporary_wallet': temporary_wallet}
        return self._jadeRpc('debug_set_mnemonic', params)

        RPC call to set the wallet mnemonic (in RAM only - flash storage is untouched).
        NOTE: Only available in a DEBUG build of the firmware.

        Parameters
        ----------
        mnemonic : str
            The wallet mnemonic to set.

        passphrase : str, optional
            Any bip39 passphrase to apply.
            Defaults to None.

        temporary_wallet : bool, optional
            Whether to treat this wallet/mnemonic as an 'Emergency Restore' temporary wallet, as
            opposed to one successfully loaded from the flash storage.
            NOTE: in either case the wallet is only set in RAM, and flash storage is not affected.
            Defaults to False.

        Returns
        -------
        bool
            True on success.
        
electrum/plugins/jade/jadepy/jade.py