def get_client(
        self,
        headers: Optional[dict[str, str]] = None,
    ):
        """
        Get a `weaviate.WeaviateClient` instance associated with the container.

        Arguments:
            `headers`
                Additional headers to include in the requests, e.g. API keys for third-party Cloud vectorization.

        Returns:
            WeaviateClient: An instance of the `weaviate.WeaviateClient` class.
        """

        try:
            import weaviate
        except ImportError as e:
            raise ImportError("To use the `get_client` method, you must install the `weaviate-client` package.") from e
        return weaviate.connect_to_custom(
            http_host=self.get_http_host(),
            http_port=self.get_http_port(),
            http_secure=self.get_http_secure(),
            grpc_host=self.get_http_host(),
            grpc_port=self.get_grpc_port(),
            grpc_secure=self.get_grpc_secure(),
            headers=headers,
        )

        Get a `weaviate.WeaviateClient` instance associated with the container.

        Arguments:
            `headers`
                Additional headers to include in the requests, e.g. API keys for third-party Cloud vectorization.

        Returns:
            WeaviateClient: An instance of the `weaviate.WeaviateClient` class.
        
modules/weaviate/testcontainers/weaviate/__init__.py