code: def test_chat_completion_exception(client):
      try:
          # Your test data
          test_data = {
              "model": "gpt-3.5-turbo",
              "messages": [
                  {"role": "user", "content": "hi"},
              ],
              "max_tokens": 10,
          }
  
          response = client.post("/chat/completions", json=test_data)
  
          json_response = response.json()
          print("keys in json response", json_response.keys())
          assert json_response.keys() == {"error"}
  
          # make an openai client to call _make_status_error_from_response
          openai_client = openai.OpenAI(api_key="anything")
          openai_exception = (
              openai_client._make_status_error_from_response(
                  response=response
              )
          )
          assert isinstance(
              openai_exception, openai.AuthenticationError
          )
  
      except Exception as e:
          pytest.fail(f"LiteLLM Proxy test failed. Exception {str(e)}")
  
file_path: litellm/litellm/tests/test_proxy_exception_mapping.py
imports: import sys, os
  from dotenv import load_dotenv
  import os, io, asyncio
  import pytest
  import litellm, openai
  from fastapi.testclient import TestClient
  from fastapi import FastAPI
  from litellm.proxy.proxy_server import router, save_worker_config, initialize
label_desc: Use image node_id 2 for calling a global function with example usage: test_chat_completion_exception(client) without return types