<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def channels(self, topic):
 """Returns all known channels of a topic."""

        nsq.assert_valid_topic_name(topic)
        return self._request('GET', '/channels', fields={'topic': topic})