code: def test_run_in_virtualenv(cloned_virtualenv):
      python_exe_path = cloned_virtualenv.python
      print(python_exe_path)
  
      # make sure cloned_virtualenv.run will run in virtualenv.
      cloned_virtualenv.run(
          f"{python_exe_path} -c 'from ray._private.runtime_env.pip import PipProcessor;"
          "assert PipProcessor._is_in_virtualenv()'",
          capture=True,
      )
  
      # Run current test case in virtualenv again.
      # If the command exit code is not zero, this will raise an `Exception`
      # which construct by this pytest-cmd's stderr
      cloned_virtualenv.run(
          f"IN_VIRTUALENV=1 python -m pytest {__file__}", capture=True
      )
  
file_path: ray/python/ray/tests/test_runtime_env_conda_and_pip_4.py
imports: import os
  import pytest
  import sys
  from ray._private.runtime_env.pip import PipProcessor
  import ray
label_desc: Use image node_id 3 for calling a global function with example usage: test_run_in_virtualenv(cloned_virtualenv) without return types