<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(self, message_type, message, connection_id, one_way=False):
 """Sends a message via the network. Args: message_type (str):
 The type of the message. message (bytes):
 The message to be sent. connection_id (str):
 The connection to send it to. """

        try:
            self._network.send(message_type, message, connection_id,
                               one_way=one_way)
        except ValueError:
            LOGGER.debug("Connection %s is no longer valid. "
                         "Removing from list of peers.",
                         connection_id)
            if connection_id in self._peers:
                del self._peers[connection_id]