code: def test_override_server_error_exception_response():
      client = TestClient(app, raise_server_exceptions=False)
      response = client.get("/server-error")
      assert response.status_code == 500
      assert response.json() == {"exception": "server-error"}
  
file_path: fastapi/tests/test_exception_handlers.py
imports: import pytest
  from fastapi import FastAPI, HTTPException
  from fastapi.exceptions import RequestValidationError
  from fastapi.testclient import TestClient
  from starlette.responses import JSONResponse
label_desc: Use image node_id 10 for calling a global function with example usage: test_override_server_error_exception_response() without return types