class_docstr: Simulator for a backend deployment with concurrent dispatch and a queue.
class_docstr_tok: ["Simulator","for","a","backend","deployment","with","concurrent","dispatch","and","a","queue","."]
docstr: The number of queued trials (to run as soon as capacity is available).
docstr_tok: ["The","number","of","queued","trials","(","to","run","as","soon","as","capacity","is","available",")","."]
code: def num_queued(self) -> int:
      """The number of queued trials (to run as soon as capacity is available)."""
      return len(self._queued)
  
imports: import logging
  import random
  import time
  from dataclasses import dataclass
  from logging import Logger
  from typing import Dict, List, Optional
  from ax.core.base_trial import TrialStatus
  from ax.utils.common.logger import get_logger
label_desc: Use image node_id 2 for calling the BackendSimulator obj's underlying member method code with example usage: obj.num_queued() and returns: len