class_docstr: Handle requests for the benchmarks/ REST endpoint
docstr: Handle GET requests for benchmarks/:name where `name` is
  the user-defined name of the benchmark
docstr_tok: ["Handle","GET","requests","for","benchmarks\/",":","name","where","`","name","`","is","the","user-defined","name","of","the","benchmark"]
code: def on_get_benchmark(self, req: Request, resp: Response, name: str):
      """
      Handle GET requests for benchmarks/:name where `name` is
      the user-defined name of the benchmark
      """
      verify_query_parameters(
          req.params, ["assessment", "task", "algorithms"]
      )
      assessment = req.get_param("assessment")
      task = req.get_param("task")
      algorithms = req.get_param_as_list("algorithms")
      benchmark = retrieve_benchmark(
          self.storage,
          name,
          assessment=assessment,
          task=task,
          algorithms=algorithms,
      )
  
      response = build_benchmark_response(
          benchmark, assessment, task, algorithms
      )
      resp.text = json.dumps(response)
  
file_path: orion/src/orion/serving/benchmarks_resource.py
imports: import json
  from falcon import Request, Response
  from orion.serving.parameters import retrieve_benchmark, verify_query_parameters
  from orion.serving.responses import build_benchmark_response, build_benchmarks_response
label_desc: Use image node_id 3 for calling the BenchmarksResource obj's underlying member method code with example usage: obj.on_get_benchmark(req, resp, name) without return types