<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def part_channel(self, channel, reason=None, tags=None):
 """Part the given channel."""

        params = [channel]
        if reason:
            params.append(reason)
        self.send('PART', params=params, tags=tags)