code: def test_fallback_to_azure_identity_credential_adppter_when_name_and_key_is_not_provided(
      self,
      mock_azure_identity_credential_adapter,
      mock_shared_key_credentials,
  ):
      self.test_account_name = None
      self.test_account_key = None
  
      hook = AzureBatchHook(azure_batch_conn_id=self.test_vm_conn_id)
      assert isinstance(hook.get_conn(), BatchServiceClient)
      mock_azure_identity_credential_adapter.assert_called_with(
          None,
          resource_id="https://batch.core.windows.net/.default",
          managed_identity_client_id=None,
          workload_identity_tenant_id=None,
      )
      assert not mock_shared_key_credentials.auth.called
  
      self.test_account_name = "test_account_name"
      self.test_account_key = "test_account_key"
  
imports: from __future__ import annotations
  from unittest import mock
  from unittest.mock import PropertyMock
  import pytest
  from azure.batch import BatchServiceClient, models
  from airflow.models import Connection
  from airflow.providers.microsoft.azure.hooks.batch import AzureBatchHook
label_desc: Use image node_id 3 for calling the TestAzureBatchHook obj's underlying member method code with example usage: obj.test_fallback_to_azure_identity_credential_adppter_when_name_and_key_is_not_provided(mock_azure_identity_credential_adapter, mock_shared_key_credentials) without return types