async def METHOD_NAME(
    compose_spec_yaml: str,
    mock_environment: EnvVarsDict,
    ensure_run_in_sequence_context_is_empty: None,
):
    settings = ApplicationSettings.create_from_envs()
    def _print_result(r: CommandResult):
        assert r.elapsed
        assert r.elapsed > 0
        print(f"{r.command:*^100}", "\nELAPSED:", r.elapsed)
    compose_spec: dict[str, Any] = yaml.safe_load(compose_spec_yaml)
    print("compose_spec:\n", compose_spec)
    # validates specs
    r = await docker_compose_config(compose_spec_yaml, timeout=10)
    _print_result(r)
    assert r.success, r.message
    # fails when containers are missing
    r = await docker_compose_start(compose_spec_yaml, settings)
    _print_result(r)
    assert r.success is False, r.message