code: def _make_docker_client(
      config: infra_validator_pb2.LocalDockerConfig,
  ):
      params = {}
      if config.client_timeout_seconds:
          params["timeout"] = config.client_timeout_seconds
      if config.client_base_url:
          params["base_url"] = config.client_base_url
      if config.client_api_version:
          params["version"] = config.client_api_version
      return docker.DockerClient(**params)
  
imports: import os
  import time
  from typing import Any, Dict, Optional
  from absl import logging
  import docker
  from docker import errors
  from tfx.components.infra_validator import error_types
  from tfx.components.infra_validator import serving_bins
  from tfx.components.infra_validator.model_server_runners import base_runner
  from tfx.proto import infra_validator_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _make_docker_client(config) and returns: docker