<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def trash_note(self, note_id):
 """ Method to move a note to the trash Arguments: - note_id (string):
 key of the note to trash Returns: A tuple `(note, status)` - note (dict):
 the newly created note or an error message - status (int):
 0 on success and -1 otherwise """

        # get note
        note, status = self.get_note(note_id)
        if (status == -1):
            return note, status
        # set deleted property, but only if not already trashed
        # TODO: A 412 is ok, that's unmodified. Should handle this in update_note and
        # then not worry about checking here
        if not note["deleted"]:
            note["deleted"] = True
            note["modificationDate"] = time.time()
            # update note
            return self.update_note(note)
        else:
            return note, 0