code: def save_persistent_state(data: bytes):
      path = get_persistent_path()
      with path.open("wb") as f:
          f.write(data)
  
file_path: dstack/gateway/src/dstack/gateway/services/persistent.py
imports: import json
  import logging
  from functools import lru_cache
  from pathlib import Path
  from typing import Dict
label_desc: Use image node_id 3 for calling a global function with example usage: save_persistent_state(data) without return types