def check_current(self, kind=None, value=None):
msg = textwrap.dedent("""<STR_LIT>""".format(self=self))<EOL>kind_valid = self.current.kind == kind if kind else True<EOL>value_valid = self.current.value == value if value else True<EOL>assert kind_valid and value_valid, msg<EOL>
Verify the current token is of type `kind` and equals `value`.