code: def test_virtualenv_project_execution(create_virtualenv_spy):
      submitted_run = mlflow.projects.run(
          TEST_VIRTUALENV_PROJECT_DIR,
          entry_point="test",
          env_manager="virtualenv",
      )
      submitted_run.wait()
      create_virtualenv_spy.assert_called_once()
  
file_path: mlflow/tests/projects/test_virtualenv_projects.py
imports: import os
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.exceptions import MlflowException
  from mlflow.utils.file_utils import read_yaml, write_yaml
  from mlflow.utils.virtualenv import _create_virtualenv
  from tests.projects.utils import TEST_VIRTUALENV_CONDA_PROJECT_DIR, TEST_VIRTUALENV_NO_PYTHON_ENV, TEST_VIRTUALENV_PROJECT_DIR
label_desc: Use image node_id 2 for calling a global function with example usage: test_virtualenv_project_execution(create_virtualenv_spy) without return types