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

def equal(self, a, b, message=None):
        "Check if two values are equal"
        if a != b:
            self.log_error("{} != {}".format(str(a), str(b)), message)
            return False
        return True