code: def find_python_env_yaml(directory: Path) -> Path:
      return next(
          filter(
              lambda p: p.name == "python_env.yaml",
              Path(directory).iterdir(),
          )
      )
  
file_path: mlflow/tests/examples/test_examples.py
imports: import os
  import re
  import shutil
  import sys
  from pathlib import Path
  import pytest
  import mlflow
  from mlflow import cli
  from mlflow.utils import process
  from mlflow.utils.virtualenv import _get_mlflow_virtualenv_root
  from tests.helper_functions import clear_hub_cache
  from tests.integration.utils import invoke_cli_runner
label_desc: Use image node_id 1 for calling a global function with example usage: find_python_env_yaml(directory) and returns: next