<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_token(self, respond):
 """ Check is the user's token is valid """

        if respond.status_code == 401:
            self.credential.obtain_token(config=self.config)
            return False
        return True