code: def anonymous_installation_id() -> str:
      ai_id_path = (
          Path.home()
          / ".cache"
          / ".dstack"
          / "anonymous_installation_id"
      )
      if not ai_id_path.exists():
          ai_id_path.parent.mkdir(parents=True, exist_ok=True)
          with open(ai_id_path, "w") as f:
              ai_id = uuid.uuid4().hex
              f.write(ai_id)
      else:
          with open(ai_id_path, "r") as f:
              ai_id = f.readline().strip()
      return ai_id
  
file_path: dstack/src/dstack/_internal/cli/utils/updates.py
imports: import uuid
  from datetime import datetime
  from pathlib import Path
  from typing import Optional
  import requests
  from packaging import version
  from dstack import version
  from dstack._internal.cli.utils.common import console
  from dstack._internal.utils.logging import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: anonymous_installation_id() and returns: ai_id