code: def mock_gcp_default_credentials(monkeypatch):
      """Mock the default credentials for GCP."""
      credentials = MagicMock()
      monkeypatch.setattr(
          "google.auth.default",
          lambda *args, **kwargs: (credentials, "us-central1"),
      )
      return credentials
  
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 1 for calling a global function with example usage: mock_gcp_default_credentials(monkeypatch) and returns: credentials