code: def mock_container_registry_client(monkeypatch):
      mock = MagicMock()
      (
          monkeypatch.setattr(
              "wandb.sdk.launch.registry.azure_container_registry.ContainerRegistryClient",
              MagicMock(return_value=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 2 for calling a global function with example usage: mock_container_registry_client(monkeypatch) and returns: mock