def create_http_client(api_url: str, api_key: str, timeout: int, retries: int, **client_args) -> httpx.Client:
    """Initialize the SDK with the given API URL and API key."""
    # This piece of code is needed to make old sdk works in combination with new one

    headers = client_args.pop("headers", {})
    headers["X-Argilla-Api-Key"] = api_key

    http_transport = httpx.HTTPTransport(
        retries=retries,
        **{name: client_args.pop(name) for name in TRANSPORT_ARGS if name in client_args},
    )

    return httpx.Client(
        base_url=api_url,
        headers=headers,
        timeout=timeout,
        transport=http_transport,
        **client_args,
    )
Initialize the SDK with the given API URL and API key.
argilla/src/argilla/_api/_http/_client.py