code: def test_azure_azure_ad_token_provider_version_and_endpoint_env() -> (
      None
  ):
      with fresh_env():
          openai.api_type = None
          _os.environ["OPENAI_API_VERSION"] = "example-version"
          _os.environ["AZURE_OPENAI_ENDPOINT"] = "https://www.example"
          openai.azure_ad_token_provider = lambda: "token"
  
          client = openai.completions._client
          assert isinstance(client, AzureOpenAI)
          assert client._azure_ad_token_provider is not None
          assert client._azure_ad_token_provider() == "token"
  
imports: from __future__ import annotations
  import os
  import httpx
  import pytest
  from httpx import URL
  import openai
  from openai import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES
  import contextlib
  from typing import Iterator
  from openai.lib.azure import AzureOpenAI
label_desc: Use image node_id 15 for calling a global function with example usage: test_azure_azure_ad_token_provider_version_and_endpoint_env() without return types