<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def recover(self, state):
        "recompute the actual value, then compare it against the truth"
        newval = self.f.recover(state)
        return self.errtype(self.value, newval)