<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def expect_comment_end(self):
 """Expect a comment end and return the match object. """

        match = self._expect_match('#}', COMMENT_END_PATTERN)
        self.advance(match.end())