code: def setup_virtualenv(version):
      """Create a virtualenv and install Oríon in it for the given version"""
      virtualenv_dir = get_virtualenv_dir(version)
      if os.path.exists(virtualenv_dir):
          shutil.rmtree(virtualenv_dir)
      execute(f"virtualenv {virtualenv_dir}")
      command = (
          "{}/bin/pip install --ignore-installed orion=={}".format(
              virtualenv_dir, version
          )
      )
      execute(command)
  
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 8 for calling a global function with example usage: setup_virtualenv(version) without return types