code: def test_azure_openai_ad_token():
      # this tests if the azure ad token is set in the request header
      # the request can fail since azure ad tokens expire after 30 mins, but the header MUST have the azure ad token
      # we use litellm.input_callbacks for this test
      def tester(
          kwargs,  # kwargs to completion
      ):
          print(kwargs["additional_args"])
          if (
              kwargs["additional_args"]["headers"]["Authorization"]
              != "Bearer gm"
          ):
              pytest.fail(
                  "AZURE AD TOKEN Passed but not set in request header"
              )
          return
  
      litellm.input_callback = [tester]
      try:
          response = litellm.completion(
              model="azure/chatgpt-v-2",  # e.g. gpt-35-instant
              messages=[
                  {
                      "role": "user",
                      "content": "what is your name",
                  },
              ],
              azure_ad_token="gm",
          )
          print("azure ad token respoonse\n")
          print(response)
          litellm.input_callback = []
      except:
          litellm.input_callback = []
          pass
  
imports: import sys, os
  import traceback
  from dotenv import load_dotenv
  import os, io
  import pytest
  import litellm
  from litellm import embedding, completion, completion_cost, Timeout
  from litellm import RateLimitError
  import openai
label_desc: Use image node_id 29 for calling a global function with example usage: test_azure_openai_ad_token() without return types