code: def test_from_conda_yaml_conda_dependencies_warning(tmp_path):
      content = """
  name: example
  channels:
    - conda-forge
  dependencies:
    - python=3.8
    - foo
    - bar
    - pip:
      - a
  """
      yaml_path = tmp_path / "conda.yaml"
      yaml_path.write_text(content)
      with mock.patch(
          "mlflow.utils.environment._logger.warning"
      ) as mock_warning:
          _PythonEnv.from_conda_yaml(yaml_path)
          mock_warning.assert_called_with(
              "The following conda dependencies will not be installed "
              "in the resulting environment: %s",
              ["foo", "bar"],
          )
  
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 8 for calling a global function with example usage: test_from_conda_yaml_conda_dependencies_warning(tmp_path) without return types