code: def test_chat_bedrock_stream():
      try:
          customHandler = CompletionCustomHandler()
          litellm.callbacks = [customHandler]
          response = litellm.completion(
              model="bedrock/anthropic.claude-v1",
              messages=[
                  {"role": "user", "content": "Hi 👋 - i'm sync bedrock"}
              ],
          )
          # test streaming
          response = litellm.completion(
              model="bedrock/anthropic.claude-v1",
              messages=[
                  {"role": "user", "content": "Hi 👋 - i'm sync bedrock"}
              ],
              stream=True,
          )
          for chunk in response:
              continue
          # test failure callback
          try:
              response = litellm.completion(
                  model="bedrock/anthropic.claude-v1",
                  messages=[
                      {
                          "role": "user",
                          "content": "Hi 👋 - i'm sync bedrock",
                      }
                  ],
                  aws_region_name="my-bad-region",
                  stream=True,
              )
              for chunk in response:
                  continue
          except:
              pass
          time.sleep(1)
          print(f"customHandler.errors: {customHandler.errors}")
          assert len(customHandler.errors) == 0
          litellm.callbacks = []
      except Exception as e:
          pytest.fail(f"An exception occurred: {str(e)}")
  
file_path: litellm/litellm/tests/test_custom_callback_input.py
imports: import sys, os, time, inspect, asyncio, traceback
  from datetime import datetime
  import pytest
  from typing import Optional, Literal, List, Union
  from litellm import completion, embedding, Cache
  import litellm
  from litellm.integrations.custom_logger import CustomLogger
label_desc: Use image node_id 3 for calling a global function with example usage: test_chat_bedrock_stream() without return types