code: def __init__(
      self,
      credential: Union[
          DefaultAzureCredential,
          ClientSecretCredential,
          RefreshTokenCredential,
      ],
      scopes: Optional[List[str]] = None,
  ):
      self.credential = credential
      self._access_token = None
      self._expires_at = None
  
      if scopes is None:
          scopes = ["https://management.azure.com/.default"]
      self.scopes = scopes
  
imports: import concurrent.futures
  import os
  import json
  import time
  import logging
  from types import TracebackType
  from typing import Any, List, Optional, Type, Union, Tuple, Dict
  from azure.identity.aio import DefaultAzureCredential, ClientSecretCredential
  from azure.core.credentials import AccessToken
  from azure.core.credentials_async import AsyncTokenCredential
  import msal
  from hailtop.utils import first_extant_file, blocking_to_async
  from ..common.credentials import CloudCredentials
label_desc: Use image node_id 5 to create a new AzureCredentials object from inherited base classes: CloudCredentials with example: obj = AzureCredentials(credential, scopes)