<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_logevidence(self, lnz, dlnz):
 """Writes the given log evidence and its error. Results are saved to file's 'log_evidence' and 'dlog_evidence' attributes. Parameters lnz : float The log of the evidence. dlnz : float The error in the estimate of the log evidence. """

        self.attrs['log_evidence'] = lnz
        self.attrs['dlog_evidence'] = dlnz