code: def get_tensorboard_fetcher_azure(
      require_secrets: bool,
      local_sync_dir: str,
      paths_to_sync: List[str],
  ) -> AzureFetcher:
      connection_string = os.environ.get("DET_AZURE_TEST_CREDS")
      storage_config = {
          "connection_string": connection_string,
          "container": CONTAINER_NAME,
      }
  
      import azure.core.exceptions
  
      try:
          fetcher = AzureFetcher(
              storage_config, paths_to_sync, local_sync_dir
          )
          data = io.BytesIO()
  
          blob_client = fetcher.client.get_blob_client(
              CONTAINER_NAME, CHECK_ACCESS_KEY
          )
          blob_client.download_blob().readinto(data)
  
          data.seek(0)
          assert data.read() == CHECK_KEY_CONTENT
  
          return fetcher
  
      except (
          ValueError,
          azure.core.exceptions.ClientAuthenticationError,
          azure.core.exceptions.ResourceNotFoundError,
      ):
          if require_secrets:
              raise
          pytest.skip("No Azure access")
  
file_path: determined/harness/tests/storage/test_azure.py
imports: import io
  import os
  import tempfile
  import uuid
  from pathlib import Path
  from typing import Dict, List
  import pytest
  from determined.common import storage
  from determined.tensorboard.fetchers.azure import AzureFetcher
  from tests.storage import util
label_desc: Use image node_id 3 for calling a global function with example usage: get_tensorboard_fetcher_azure(require_secrets, local_sync_dir, paths_to_sync) and returns: fetcher