code: def _build_storage_config():
      if sys.platform == "darwin":
          plasma_dir = "/tmp"
      else:
          plasma_dir = "/dev/shm"
      plasma_setup_params = dict(
          store_memory=MEMORY_SIZE,
          plasma_directory=plasma_dir,
          check_dir_size=False,
      )
      tempdir = tempfile.mkdtemp()
      disk_setup_params = dict(root_dirs=tempdir, level="disk")
      storage_configs = {
          "plasma": plasma_setup_params,
          "filesystem": disk_setup_params,
      }
      return storage_configs
  
file_path: mars/mars/services/storage/tests/test_spill.py
imports: import asyncio
  import os
  import sys
  import tempfile
  import numpy
  import pyarrow
  import pytest
  from ....None import oscar
  from ....storage import StorageLevel, PlasmaStorage
  from ....utils import calc_data_size
  from ..core import StorageManagerActor, StorageQuotaActor, build_data_info
  from ..handler import StorageHandlerActor
label_desc: Use image node_id 1 for calling a global function with example usage: _build_storage_config() and returns: storage_configs