def METHOD_NAME(self, guard_key: int, pin_success_log: int, pin_entry_log: int):
    pin_log = (
        helpers.int_to_word(guard_key)
        + helpers.to_bytes_by_words(pin_success_log, consts.PIN_LOG_SIZE)
        + helpers.to_bytes_by_words(pin_entry_log, consts.PIN_LOG_SIZE)
    )
    try:
        self.norcow.replace(consts.PIN_LOG_KEY, pin_log)
    except RuntimeError:
        self.norcow.set(consts.PIN_LOG_KEY, pin_log)