code: def get_access_token(tenant_id, application_id, application_secret):
      '''get an Azure access token using the adal library.
  
      Args:
          tenant_id (str): Tenant id of the user's account.
          application_id (str): Application id of a Service Principal account.
          application_secret (str): Application secret (password) of the Service Principal account.
  
      Returns:
          An Azure authentication token string.
      '''
      context = adal.AuthenticationContext(
          get_auth_endpoint() + tenant_id, api_version=None)
      token_response = context.acquire_token_with_client_credentials(
          get_resource_endpoint(), application_id, application_secret)
      return token_response.get('accessToken'f get_access_token(tenant_id, application_id, application_secret):
      '''get an Azure access token using the adal library.
  
      Args:
          tenant_id (str): Tenant id of the user's account.
          application_id (str): Application id of a Service Principal account.
          application_secret (str): Application secret (password) of the Service Principal account.
  
      Returns:
          An Azure authentication token string.
      '''
      context = adal.AuthenticationContext(
          get_auth_endpoint() + tenant_id, api_version=None)
      token_response = context.acquire_token_with_client_credentials(
          get_resource_endpoint(), application_id, application_secret)
      return token_response.get('accessToken')
docs: get an Azure access token using the adal library.
  
      Args:
          tenant_id (str): Tenant id of the user's account.
          application_id (str): Application id of a Service Principal account.
          application_secret (str): Application secret (password) of the Service Principal account.
  
      Returns:
          An Azure authentication token string.