code: def _set_platform_dir_class() -> type[PlatformDirsABC]:
      if sys.platform == "win32":
          from .windows import Windows as Result
      elif sys.platform == "darwin":
          from .macos import MacOS as Result
      else:
          from .unix import Unix as Result
  
      if (
          os.getenv("ANDROID_DATA") == "/data"
          and os.getenv("ANDROID_ROOT") == "/system"
      ):
          if os.getenv("SHELL") or os.getenv("PREFIX"):
              return Result
  
          from .android import _android_folder
  
          if _android_folder() is not None:
              from .android import Android
  
              return Android  # return to avoid redefinition of result
  
      return Result
  
imports: from __future__ import annotations
  import os
  import sys
  from pathlib import Path
  from .api import PlatformDirsABC
  from .version import __version__
  from .version import __version_tuple__
label_desc: Use image node_id 1 for calling a global function with example usage: _set_platform_dir_class() and returns: Result, Result, Android