code: def storage(request, tmp_path) -> StorageContext:
      storage_type = request.param
      with _resolve_storage_type(storage_type, tmp_path) as (
          storage_path,
          storage_filesystem,
      ):
          yield StorageContext(
              storage_path=storage_path,
              experiment_dir_name="exp_name",
              storage_filesystem=storage_filesystem,
              trial_dir_name="trial_name",
              sync_config=SyncConfig(
                  sync_artifacts=True,
                  sync_artifacts_on_checkpoint=True,
                  sync_period=1000,
              ),
          )
  
file_path: ray/python/ray/train/tests/test_storage.py
imports: import os
  from pathlib import Path
  import pyarrow.fs
  import pytest
  import ray.cloudpickle
  from ray.train import Checkpoint, SyncConfig
  from ray.train._internal.storage import _VALIDATE_STORAGE_MARKER_FILENAME, StorageContext, _list_at_fs_path
  from ray.train.tests.test_new_persistence import _resolve_storage_type
label_desc: Use image node_id 1 for calling a global function with example usage: storage(request, tmp_path) without return types