code: def write(self, message):
          
          message.id = message.id or self.writer.next_message_id()
  
          if message.message_type in self.CALL_REQ_TYPES:
              message_factory = self.request_message_factory
          else:
              message_factory = self.response_message_factory
  
          fragments = message_factory.fragment(message)
          return self._write_fragments(fragments)
docs: Writes the given message up the wire.
  
          Does not expect a response back for the message.
  
          :param message:
              Message to write.