<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_dialogue(self, query, response):
 """Add dialogue to channel. :param query: query string :param response: response string """

        self._dialogues['__default__'][to_bytes(query)] = to_bytes(response)