code: def verify_status(status):
      """Verifies that the given trial status is supported. Raises falcon.HTTPBadRequest otherwise"""
      if status and status not in Trial.allowed_stati:
          description = 'The "status" parameter is invalid. '
          description += (
              "The value of the parameter must be one of {}".format(
                  list(Trial.allowed_stati)
              )
          )
  
          raise falcon.HTTPBadRequest(
              title=ERROR_INVALID_PARAMETER, description=description
          )
  
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 2 for calling a global function with example usage: verify_status(status) without return types