def _create_client(base_url: str, tls: TLSConfig=False) -> Optional[APIClient]:
try:<EOL><INDENT>client = APIClient(base_url=base_url, tls=tls, version="<STR_LIT>")<EOL>return client if client.ping() else None<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>
Creates a Docker client with the given details.
:param base_url: the base URL of the Docker daemon
:param tls: the Docker daemon's TLS config (if any)
:return: the created client else None if unable to connect the client to the daemon