code: def retrieve_trial(experiment: Experiment, trial_id: str):
      """
      Retrieves the trial for the given id in the experiment
  
      Parameters
      ----------
      experiment: Experiment
          The experiment containing the trial.
  
      trial_id: str
          The id of the trial
  
      Raises
      ------
      falcon.HTTPNotFound
          When the trial doesn't exist in the experiment.
  
      """
      trial = experiment.get_trial(uid=trial_id)
      if not trial:
          raise falcon.HTTPNotFound(
              title=ERROR_TRIAL_NOT_FOUND,
              description=f'Trial "{trial_id}" does not exist',
          )
      return trial
  
file_path: orion/src/orion/serving/parameters.py
imports: from typing import List, Optional
  import falcon
  from orion.benchmark import Benchmark
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.core.io import experiment_builder
  from orion.core.utils.exceptions import NoConfigurationError
  from orion.core.worker.experiment import Experiment
  from orion.core.worker.trial import Trial
  from orion.serving.responses import ERROR_BENCHMARK_NOT_FOUND, ERROR_BENCHMARK_STUDY_NOT_FOUND, ERROR_EXPERIMENT_NOT_FOUND, ERROR_INVALID_PARAMETER, ERROR_TRIAL_NOT_FOUND
label_desc: Use image node_id 5 for calling a global function with example usage: retrieve_trial(experiment, trial_id) and returns: trial