code: def copy_data(data, host=TMP_DB_HOST):
      print("Copying data to", host)
      storage = setup_tmp_storage(host)
      for exp_id, experiment in data["experiments"].items():
          del experiment["_id"]
          storage.create_experiment(experiment, storage=storage)
          assert exp_id != experiment["_id"]
          trials = []
          for trial in data["trials"][exp_id]:
              trial.experiment = experiment["_id"]
              trials.append(trial.to_dict())
          storage._db.write("trials", trials)
  
file_path: orion/docs/scripts/build_database_and_plots.py
imports: import argparse
  import glob
  import os
  import shutil
  import subprocess
  from orion.client import get_experiment
  from orion.storage.base import setup_storage
label_desc: Use image node_id 5 for calling a global function with example usage: copy_data(data, host) without return types