def add_zero_gpu_headers(self, headers: dict[str, str]) -> dict[str, str]:
        """
        Adds the x-ip-token header to the headers dictionary to pass it to a Zero-GPU Space. This allows a user's
        ZeroGPU quota to be tracked and used by the underlying Space. For the x-ip-token header to be present,
        this method needs to be called when a Gradio app's LocalContext is defined. i.e. this method
        cannot be called when the Gradio Client is instantiated, but must be called from inside a Gradio app's
        prediction function.
        """
        if not self.space_id:
            return headers
        try:
            from gradio.context import LocalContext
        except (
            ImportError
        ):  # this is not running within a Gradio app as Gradio is not installed
            return headers
        request = LocalContext.request.get()
        if request and hasattr(request, "headers") and "x-ip-token" in request.headers:
            headers["x-ip-token"] = request.headers["x-ip-token"]
        return headers

        Adds the x-ip-token header to the headers dictionary to pass it to a Zero-GPU Space. This allows a user's
        ZeroGPU quota to be tracked and used by the underlying Space. For the x-ip-token header to be present,
        this method needs to be called when a Gradio app's LocalContext is defined. i.e. this method
        cannot be called when the Gradio Client is instantiated, but must be called from inside a Gradio app's
        prediction function.
        
client/python/gradio_client/client.py