code: def restore_run(run_id):
      """
      Restore a deleted run.
      Returns an error if the run is active or has been permanently deleted.
      """
      store = _get_store()
      store.restore_run(run_id)
      click.echo(f"Run with id {run_id} has been restored.")
  
file_path: mlflow/mlflow/runs.py
imports: import json
  import click
  from mlflow.entities import ViewType
  from mlflow.environment_variables import MLFLOW_EXPERIMENT_ID
  from mlflow.tracking import _get_store
  from mlflow.utils.string_utils import _create_table
  from mlflow.utils.time import conv_longdate_to_str
label_desc: Use image node_id 4 for calling a global function with example usage: restore_run(run_id) without return types