code: def test_completion_mistral_api_stream():
      try:
          litellm.set_verbose = True
          print("Testing streaming mistral api response")
          response = completion(
              model="mistral/mistral-medium",
              messages=[
                  {
                      "role": "user",
                      "content": "Hey, how's it going?",
                  }
              ],
              max_tokens=10,
              stream=True,
          )
          complete_response = ""
          for idx, chunk in enumerate(response):
              print(chunk)
              # print(chunk.choices[0].delta)
              chunk, finished = streaming_format_tests(idx, chunk)
              if finished:
                  break
              complete_response += chunk
          if complete_response.strip() == "":
              raise Exception("Empty response received")
          print(f"completion_response: {complete_response}")
      except Exception as e:
          pytest.fail(f"Error occurred: {e}")
  
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 12 for calling a global function with example usage: test_completion_mistral_api_stream() without return types