code: def test_get_anonymous_bucket():
      with mock.patch(
          "google.cloud.storage", autospec=True
      ) as gcs_mock:
          gcs_mock.Client.side_effect = DefaultCredentialsError("Test")
          repo = GCSArtifactRepository("gs://test_bucket")
          repo._get_bucket("gs://test_bucket")
          anon_call_count = (
              gcs_mock.Client.create_anonymous_client.call_count
          )
          assert anon_call_count == 1
          bucket_call_count = (
              gcs_mock.Client.create_anonymous_client.return_value.bucket.call_count
          )
          assert bucket_call_count == 1
  
imports: import os
  import posixpath
  from unittest import mock
  import pytest
  import requests
  from google.auth.exceptions import DefaultCredentialsError
  from google.cloud.storage import client
  from mlflow.entities.multipart_upload import MultipartUploadPart
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.gcs_artifact_repo import GCSArtifactRepository, GCSMPUArguments
  from tests.helper_functions import mock_method_chain
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_anonymous_bucket() without return types