<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unsubscribe(self, client):
 """Unsubscribe a client from all channels."""

        for channel in self.channels.values():
            channel.unsubscribe(client)