code: def validate_environment(self, api_key, azure_ad_token):
      headers = {
          "content-type": "application/json",
      }
      if api_key is not None:
          headers["api-key"] = api_key
      elif azure_ad_token is not None:
          headers["Authorization"] = f"Bearer {azure_ad_token}"
      return headers
  
imports: from typing import Optional, Union, Any
  import types, requests
  from .base import BaseLLM
  from litellm.utils import ModelResponse, Choices, Message, CustomStreamWrapper, convert_to_model_response_object
  from typing import Callable, Optional
  from litellm import OpenAIConfig
  import litellm, json
  import httpx
  from .custom_httpx.azure_dall_e_2 import CustomHTTPTransport, AsyncCustomHTTPTransport
  from openai import AzureOpenAI, AsyncAzureOpenAI
label_desc: Use image node_id 2 for calling the AzureChatCompletion obj's underlying member method code with example usage: obj.validate_environment(api_key, azure_ad_token) and returns: headers