code: def on_success(self, metadata):
          
          handler = self.handlers.get("on_success")
          if callable(handler):
              handler(metadata)
          handler = self.handlers.get("on_summary")
          if callable(handler):
              handler()
docs: Called when a SUCCESS message has been received.