code: def test_together_ai_completion_call_starcoder_bad_key():
      try:
          api_key = "bad-key"
          start_time = time.time()
          response = completion(
              model="together_ai/bigcode/starcoder",
              messages=messages,
              stream=True,
              api_key=api_key,
          )
          complete_response = ""
          has_finish_reason = False
          for idx, chunk in enumerate(response):
              chunk, finished = streaming_format_tests(idx, chunk)
              has_finish_reason = finished
              if finished:
                  break
              complete_response += chunk
          if has_finish_reason is False:
              raise Exception("Finish reason not set for last chunk")
          if complete_response == "":
              raise Exception("Empty response received")
          print(f"complete response: {complete_response}")
      except BadRequestError as e:
          pass
      except:
          print(f"error occurred: {traceback.format_exc()}")
          pass
  
imports: import sys, os, asyncio
  import traceback
  import time, pytest
  from dotenv import load_dotenv
  import litellm
  from litellm import completion, acompletion, AuthenticationError, BadRequestError, RateLimitError, ModelResponse
label_desc: Use image node_id 26 for calling a global function with example usage: test_together_ai_completion_call_starcoder_bad_key() without return types