def _get_result_sync(self, task_id: str) -> Dict[str, Any]:
        """Polls for the result of a task synchronously."""
        url = f"{self.status_url}/{task_id}"
        response = requests.get(url, timeout=600.0)
        response.raise_for_status()
        return response.json()
Polls for the result of a task synchronously.
llama-index-integrations/llms/llama-index-llms-mymagic/llama_index/llms/mymagic/base.py