<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_bytes(self):
 """Retrieve all pending bytes to send on the network"""

        data = b''.join(self.bytes_to_send)
        self.bytes_to_send = []
        return data