code: def test_tag_storage_type(
      storage_path_filesystem_expected, mock_record, monkeypatch
  ):
      # Don't write anything to storage for the test.
      monkeypatch.setattr(
          StorageContext, "_create_validation_file", lambda _: None
      )
      monkeypatch.setattr(
          StorageContext, "_check_validation_file", lambda _: None
      )
  
      (
          storage_path,
          storage_filesystem,
          expected,
      ) = storage_path_filesystem_expected
  
      if Version(pyarrow.__version__) < Version(
          "9.0.0"
      ) and storage_path.startswith("gs://"):
          pytest.skip("GCS support requires pyarrow >= 9.0.0")
  
      storage = StorageContext(
          storage_path=storage_path,
          experiment_dir_name="test",
          storage_filesystem=storage_filesystem,
      )
      air_usage.tag_storage_type(storage)
      assert mock_record[TagKey.AIR_STORAGE_CONFIGURATION] == expected
  
imports: import json
  import os
  from packaging.version import Version
  import pyarrow.fs
  import pytest
  from unittest.mock import MagicMock, patch
  import ray
  from ray import train, tune
  from ray.air._internal import usage
  from ray.air._internal.usage import AirEntrypoint
  from ray.air.integrations import wandb, mlflow, comet
  from ray.train._internal.storage import StorageContext
  from ray.tune.callback import Callback
  from ray.tune.experiment.experiment import Experiment
  from ray.tune.logger import LoggerCallback
  from ray.tune.logger.aim import AimLoggerCallback
  from ray.tune.utils.callback import DEFAULT_CALLBACK_CLASSES
  from ray._private.usage.usage_lib import TagKey
label_desc: Use image node_id 7 for calling a global function with example usage: test_tag_storage_type(storage_path_filesystem_expected, mock_record, monkeypatch) without return types