code: def use_platform_dirs() -> bool:
      """Determine if platformdirs should be used for system-specific paths.
  
      We plan for this to default to False in jupyter_core version 5 and to True
      in jupyter_core version 6.
      """
      return envset("JUPYTER_PLATFORM_DIRS", False)
  
imports: from __future__ import annotations
  import errno
  import os
  import site
  import stat
  import sys
  import tempfile
  import warnings
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Any, Iterator, Optional
  import platformdirs
  from .utils import deprecation
label_desc: Use image node_id 2 for calling a global function with example usage: use_platform_dirs() and returns: envset