<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mode(self, target, *data):
 """set user or channel mode"""

        self.send_line('MODE %s %s' % (target, ' '.join(data)), nowait=True)