class_docstr: The Backend provides and interface for the framework to communicate with resources in the cloud.
class_docstr_tok: ["The","Backend","provides","and","interface","for","the","framework","to","communicate","with","resources","in","the","cloud","."]
code: def _prepare_queues(self, app: "lightning.app.LightningApp"):
      kw = {"queue_id": self.queue_id}
      app.delta_queue = self.queues.get_delta_queue(**kw)
      app.readiness_queue = self.queues.get_readiness_queue(**kw)
      app.api_response_queue = self.queues.get_api_response_queue(**kw)
      app.error_queue = self.queues.get_error_queue(**kw)
      app.api_publish_state_queue = (
          self.queues.get_api_state_publish_queue(**kw)
      )
      app.api_delta_queue = app.delta_queue
      app.request_queues = {}
      app.response_queues = {}
      app.copy_request_queues = {}
      app.copy_response_queues = {}
      app.caller_queues = {}
      app.work_queues = {}
      app.flow_to_work_delta_queues = {}
  
imports: from abc import ABC, abstractmethod
  from functools import partial
  from typing import TYPE_CHECKING, Any, Callable, List, Optional
  from lightning.app.core.queues import QueuingSystem
  from lightning.app.utilities.proxies import ProxyWorkRun, unwrap
label_desc: Use image node_id 9 for calling the Backend obj's underlying member method code with example usage: obj._prepare_queues(app) without return types