code: def publish(self,topic,options=None,args=None,kwargs=None):
          
          topic = self.get_full_uri(topic)
          if options is None:
              options = {'acknowledge':True}
          if options.get('acknowledge'):
              request = PUBLISH(
                          options=options or {},
                          topic=topic,
                          args=args or [],
                          kwargs=kwargs or {}
                        )
              result = self.send_and_await_response(request)
              return result
          else:
              request = PUBLISH(
                          options=options or {},
                          topic=topic,
                          args=args or [],
                          kwargs=kwargs or {}
                        )
              self.send_message(request)
              return request.request_id
docs: Publishes a messages to the server