code: def local_path(tmp_path, monkeypatch):
      local_dir = str(tmp_path / "ray_results")
      monkeypatch.setenv("RAY_AIR_LOCAL_CACHE_DIR", local_dir)
      yield local_dir
  
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 2 for calling a global function with example usage: local_path(tmp_path, monkeypatch) without return types