code: def test_from_conda_yaml(tmp_path):
      content = """
  name: example
  channels:
    - conda-forge
  dependencies:
    - python=3.8.15
    - pip
    - pip:
      - a
      - b
  """
      yaml_path = tmp_path / "conda.yaml"
      yaml_path.write_text(content)
      python_env = _PythonEnv.from_conda_yaml(yaml_path)
      assert python_env.python == "3.8.15"
      assert python_env.build_dependencies == ["pip"]
      assert python_env.dependencies == ["a", "b"]
  
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 4 for calling a global function with example usage: test_from_conda_yaml(tmp_path) without return types