def METHOD_NAME(self) -> None:
    hooks.card_will_flush(self)
    if self.id != 0:
        self.col._backend.update_cards(
            cards=[self._to_backend_card()], skip_undo_entry=True
        )
    else:
        raise Exception("card.flush() expects an existing card")