code: def send(self, message_type, message, connection_id, one_way=False):
          
          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]
docs: 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.