code: def test_virtualenv_project_no_mlmodel_file(
      create_virtualenv_spy, tmp_path
  ):
      tmp_path.joinpath("test.py").write_text(
          """
  import os
  
  assert "VIRTUAL_ENV" in os.environ
  """
      )
      mlflow.projects.run(str(tmp_path), entry_point="test.py")
      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 9 for calling a global function with example usage: test_virtualenv_project_no_mlmodel_file(create_virtualenv_spy, tmp_path) without return types