code: def test_from_conda_yaml_use_current_python_version_when_no_python_spec_in_conda_yaml(
      tmp_path,
  ):
      content = """
  name: example
  channels:
    - conda-forge
  dependencies:
    - pip
    - pip:
      - a
      - b
  """
      yaml_path = tmp_path / "conda.yaml"
      yaml_path.write_text(content)
      assert (
          _PythonEnv.from_conda_yaml(yaml_path).python == PYTHON_VERSION
      )
  
file_path: mlflow/tests/utils/test_python_env.py
imports: from unittest import mock
  import pytest
  from mlflow.utils import PYTHON_VERSION
  from mlflow.utils.environment import _PythonEnv
label_desc: Use image node_id 6 for calling a global function with example usage: test_from_conda_yaml_use_current_python_version_when_no_python_spec_in_conda_yaml(tmp_path) without return types