code: def test_sync_sync_raise_server_error():
      client = TestClient(app, raise_server_exceptions=False)
      response = client.get("/sync_sync_raise")
      assert response.status_code == 500, response.text
      assert state["/sync_raise"] == "generator raise finalized"
      assert "/sync_raise" in errors
      errors.clear()
  
imports: import json
  from typing import Dict
  import pytest
  from fastapi import BackgroundTasks, Depends, FastAPI
  from fastapi.responses import StreamingResponse
  from fastapi.testclient import TestClient
label_desc: Use image node_id 29 for calling a global function with example usage: test_sync_sync_raise_server_error() without return types