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: Get a ``SimTrial`` by ``trial_index``.
  
  Args:
      trial_index: The index of the trial to return.
  
  Returns:
      A ``SimTrial`` with the index ``trial_index`` or None if not found.
docstr_tok: ["Get","a","``","SimTrial","``","by","``","trial_index","``",".","Args",":","trial_index",":","The","index","of","the","trial","to","return",".","Returns",":","A","``","SimTrial","``","with","the","index","``","trial_index","``","or","None","if","not","found","."]
code: def get_sim_trial_by_index(
      self, trial_index: int
  ) -> Optional[SimTrial]:
      """Get a ``SimTrial`` by ``trial_index``.
  
      Args:
          trial_index: The index of the trial to return.
  
      Returns:
          A ``SimTrial`` with the index ``trial_index`` or None if not found.
      """
      return self._index_to_trial_map.get(trial_index)
  
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 18 for calling the BackendSimulator obj's underlying member method code with example usage: obj.get_sim_trial_by_index(trial_index) and returns: self