def check_token(self, token: '<STR_LIT>') -> bool:
if self.get_state() is None:  <EOL><INDENT>return False<EOL><DEDENT>correct_token = self.make_token(self)<EOL>self.clear()<EOL>return constant_time_compare(correct_token, token)<EOL>
Check that a token is correct for a given scope token.