docs: def setup_exchanges(app):
      """
      Setup result exchange to route all tasks to platform queue.
      """
      with app.producer_or_acquire() as P:
          # Ensure all queues are noticed and configured with their
          # appropriate exchange.
          for q in app.amqp.queues.values():
              P.maybe_declare(q)