code: def test_from_yaml(tmp_path):
      content = """
  python: 3.8.15
  build_dependencies:
  - a
  - b
  dependencies:
  - c
  - d
  """
      yaml_path = tmp_path / "test.yaml"
      yaml_path.write_text(content)
      python_env = _PythonEnv.from_yaml(yaml_path)
      assert python_env.python == "3.8.15"
      assert python_env.build_dependencies == ["a", "b"]
      assert python_env.dependencies == ["c", "d"]
  
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 3 for calling a global function with example usage: test_from_yaml(tmp_path) without return types