code: def _cache_dir() -> Path:
      xdg = os.environ.get("XDG_CACHE_HOME")
      if xdg is not None:
          return Path(xdg)
  
      return Path.home() / ".cache"
  
imports: from __future__ import annotations
  import os
  import sys
  import json
  import shutil
  import tarfile
  import platform
  import subprocess
  from typing import TYPE_CHECKING, List
  from pathlib import Path
  from argparse import ArgumentParser
  import httpx
  from .._errors import CLIError, SilentCLIError
  from .._models import BaseModel
label_desc: Use image node_id 4 for calling a global function with example usage: _cache_dir() and returns: unknown, Path