code: def get_tensorboard_fetcher_gcs(
      require_secrets: bool,
      local_sync_dir: str,
      paths_to_sync: List[str],
  ) -> GCSFetcher:
      storage_config = {"bucket": BUCKET_NAME}
  
      try:
          fetcher = GCSFetcher(
              storage_config, paths_to_sync, local_sync_dir
          )
  
          blob = fetcher.client.bucket(BUCKET_NAME).blob("check-access")
          assert blob.download_as_bytes() == CHECK_KEY_CONTENT
  
          return fetcher
  
      except google.auth.exceptions.DefaultCredentialsError:
          # No access detected.
          if require_secrets:
              raise
          pytest.skip("No GCS access")
  
file_path: determined/harness/tests/storage/test_gcs.py
imports: import os
  import uuid
  from pathlib import Path
  from typing import Dict, Iterator, List, Optional
  import google.auth.exceptions
  import google.cloud.storage
  import pytest
  from determined import errors
  from determined.common import storage
  from determined.tensorboard.fetchers.gcs import GCSFetcher
  from tests.storage import util
label_desc: Use image node_id 4 for calling a global function with example usage: get_tensorboard_fetcher_gcs(require_secrets, local_sync_dir, paths_to_sync) and returns: fetcher