code: def publish(self, message, routing_key=None):
          
          if routing_key is None:
              routing_key = self.routing_key
          return self.client.publish_to_exchange(self.name, message=message, routing_key=routing_key)
docs: Publish message to exchange
  
          :param message: message for publishing
          :type message: any serializable object
          :param routing_key: routing key for queue
          :return: None