code: def get_experiment(name, version=None, mode="r", storage=None):
      """
      Retrieve an existing experiment as :class:`orion.client.experiment.ExperimentClient`.
  
      Parameters
      ----------
      name: str
          The name of the experiment.
      version: int, optional
          Version to select. If None, last version will be selected. If version given is larger than
          largest version available, the largest version will be selected.
      mode: str, optional
          The access rights of the experiment on the database.
          'r': read access only
          'w': can read and write to database
          Default is 'r'
      storage: dict, optional
          Configuration of the storage backend.
  
      Returns
      -------
      An instance of :class:`orion.client.experiment.ExperimentClient` representing the experiment.
  
      Raises
      ------
      `orion.core.utils.exceptions.NoConfigurationError`
          The experiment is not in the database provided by the user.
      """
      assert mode in set("rw")
  
      experiment = experiment_builder.load(
          name, version, mode, storage=storage
      )
      return ExperimentClient(experiment)
  
file_path: orion/src/orion/client/__init__.py
imports: from __future__ import annotations
  import logging
  import typing
  from typing import Any, Callable
  import orion.core.io.experiment_builder
  from orion.algo.base import BaseAlgorithm
  from orion.client.cli import interrupt_trial, report_bad_trial, report_objective, report_results
  from orion.client.experiment import ExperimentClient
  from orion.core.utils.exceptions import RaceCondition
  from orion.core.worker.producer import Producer
  from orion.core.worker.warm_start.knowledge_base import KnowledgeBase
  from orion.executor.base import BaseExecutor
  from orion.storage.base import BaseStorageProtocol, setup_storage
label_desc: Use image node_id 3 for calling a global function with example usage: get_experiment(name, version, mode, storage) and returns: ExperimentClient