<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_state(self, pair, state):
 """ Updates the state of a check. """

        self.__log_info('Check %s %s -> %s', pair, pair.state, state)
        pair.state = state