<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_quoted_text(self, quoted_text):
 """Sets the context's ``quoted_text`` flag. Useful when entering and exiting quoted text tokens."""

        self.quoted_text = quoted_text
        self.line_comment = False
        return self