code: def fill_db(request):
      """Add experiments and trials in DB for given version of Oríon."""
      set_env()
  
      version = request.param
  
      setup_virtualenv(version)
  
      orion_script = os.path.join(
          get_virtualenv_dir(version), "bin", "orion"
      )
      python_script = os.path.join(
          get_virtualenv_dir(version), "bin", "python"
      )
  
      orion_version = get_version(orion_script)
      assert orion_version == f"orion {version}"
  
      fill_from_cmdline_api(orion_script, version)
      if has_python_api(version):
          fill_from_python_api(python_script, version)
  
      orion_version = get_version("orion")
      assert orion_version != f"orion {version}"
  
      orion.core.cli.main(["db", "upgrade", "-f"])
  
      return version
  
imports: import os
  import shutil
  import subprocess
  import pytest
  from pymongo import MongoClient
  import orion.core.cli
  import orion.core.io.experiment_builder
  from orion.client import create_experiment
  from orion.core.io.database import database_factory
  from orion.storage.base import storage_factory
label_desc: Use image node_id 13 for calling a global function with example usage: fill_db(request) and returns: version