def METHOD_NAME(
    default_app_env_vars: dict[str, str], tmpdir_factory: Callable
) -> Path:
    # Overrides fixture in https://github.com/avast/pytest-docker
    # NOTE: do not forget to add the current environ here, otherwise docker compose fails
    environ = dict(os.environ)
    environ.update(default_app_env_vars)
    src_path = CURRENT_DIR / "data" / "docker-compose.yml"
    assert src_path.exists
    dst_path = Path(str(tmpdir_factory.mktemp("config").join("docker-compose.yml")))
    shutil.copy(src_path, dst_path.parent)
    assert dst_path.exists()
    # configs
    subprocess.run(
        f'docker compose --file "{src_path}" config > "{dst_path}"',
        shell=True,
        check=True,
        env=environ,
    )
    return dst_path