code: def _retrieve_algorithm(experiment: Experiment) -> dict:
      """Populates the `algorithm` key with the configuration of the experiment's algorithm."""
      algorithm_name = list(experiment.algorithm.configuration.keys())[
          0
      ]
  
      result = {"name": algorithm_name}
      result.update(experiment.algorithm.configuration[algorithm_name])
      return result
  
file_path: orion/src/orion/serving/experiments_resource.py
imports: import json
  from typing import Optional
  from falcon import Request, Response
  from orion.core.worker.experiment import Experiment
  from orion.core.worker.trial import Trial
  from orion.serving.parameters import retrieve_experiment, verify_query_parameters
  from orion.serving.responses import build_experiment_response, build_experiments_response
label_desc: Use image node_id 3 for calling a global function with example usage: _retrieve_algorithm(experiment) and returns: result