code: def _pick_get_win_folder() -> Callable[[str], str]:
      if hasattr(ctypes, "windll"):
          return get_win_folder_via_ctypes
      try:
          import winreg  # noqa: F401
      except ImportError:
          return get_win_folder_from_env_vars
      else:
          return get_win_folder_from_registry
  
imports: from __future__ import annotations
  import ctypes
  import os
  import sys
  from functools import lru_cache
  from typing import TYPE_CHECKING
  from .api import PlatformDirsABC
label_desc: Use image node_id 5 for calling a global function with example usage: _pick_get_win_folder() and returns: get_win_folder_via_ctypes, get_win_folder_from_registry, get_win_folder_from_env_vars