code: def mock_default_azure_credential(monkeypatch):
      mock = MagicMock()
      monkeypatch.setattr(
          "wandb.sdk.launch.environment.azure_environment.DefaultAzureCredential",
          mock,
      )
      return mock
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_registry/test_acr.py
imports: from unittest.mock import MagicMock
  import pytest
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.registry.azure_container_registry import AzureContainerRegistry, ResourceNotFoundError
label_desc: Use image node_id 1 for calling a global function with example usage: mock_default_azure_credential(monkeypatch) and returns: mock