code: def test_context_window(model):
      print("Testing context window error")
      sample_text = "Say error 50 times" * 1000000
      messages = [{"content": sample_text, "role": "user"}]
      try:
          litellm.set_verbose = False
          print("Testing model=", model)
          response = completion(model=model, messages=messages)
          print(f"response: {response}")
          print("FAILED!")
          pytest.fail(f"An exception occurred")
      except ContextWindowExceededError as e:
          print(f"Worked!")
      except RateLimitError:
          print("RateLimited!")
      except Exception as e:
          print(f"{e}")
          pytest.fail(f"An error occcurred - {e}")
  
file_path: litellm/litellm/tests/test_exceptions.py
imports: from openai import AuthenticationError, BadRequestError, RateLimitError, OpenAIError
  import os
  import sys
  import traceback
  import subprocess
  import litellm
  from litellm import embedding, completion, ContextWindowExceededError
  from concurrent.futures import ThreadPoolExecutor
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_context_window(model) without return types