def get_otp_code(self, otp_name, value_override=None):
        """
        RPC call to fetch a new OTP code from the hw device.

        Parameters
        ----------
        otp_name : str
            An identifying name for the OTP record to use

        value_override : int
            An overriding HOTP counter or TOTP timestamp to use.
            NOTE: Only available in a DEBUG build of the firmware.

        Returns
        -------
        bool
            True if the OTP uri was validated and persisted on the hw
        """
        params = {'name': otp_name}
        if value_override is not None:
            params['override'] = value_override
        return self._jadeRpc('get_otp_code', params)

        RPC call to fetch a new OTP code from the hw device.

        Parameters
        ----------
        otp_name : str
            An identifying name for the OTP record to use

        value_override : int
            An overriding HOTP counter or TOTP timestamp to use.
            NOTE: Only available in a DEBUG build of the firmware.

        Returns
        -------
        bool
            True if the OTP uri was validated and persisted on the hw
        
electrum/plugins/jade/jadepy/jade.py