code: def mock_gcp_artifact_registry_client(monkeypatch):
      """Mock the Google Artifact Registry client."""
      client = MagicMock()
      monkeypatch.setattr(
          "google.cloud.artifactregistry.ArtifactRegistryClient",
          lambda *args, **kwargs: client,
      )
      return client
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_registry/test_gcp_artifact_registry.py
imports: from unittest.mock import MagicMock
  import google.api_core.exceptions
  import pytest
  from wandb.sdk.launch.registry.google_artifact_registry import GoogleArtifactRegistry
  from wandb.sdk.launch.utils import LaunchError
label_desc: Use image node_id 2 for calling a global function with example usage: mock_gcp_artifact_registry_client(monkeypatch) and returns: client