def METHOD_NAME(worker_id: str) -> Generator[DockerClient, None, None]:
    context = docker_client()
    try:
        client = context.__enter__()
    except Exception as exc:
        raise RuntimeError(
            "Failed to create Docker client. Exclude tests that require Docker with "
            "'--exclude-service docker'."
        ) from exc
    try:
        with cleanup_all_new_docker_objects(client, worker_id):
            yield client
    finally:
        context.__exit__(*sys.exc_info())