code: def preferTabsPreferenceWarning():
      """
      Warn if "Prefer tabs when opening documents" is set to "Always".
      """
      if platform != "darwin":
          return None
  
      prefs = readSystemPreferences()
      if prefs and prefs.get("AppleWindowTabbingMode") == "always":
          return (
              'WARNING: The system preference "Prefer tabs when opening'
              ' documents" is set to "Always". This will cause various problems'
              " with IDLE. For the best experience, change this setting when"
              " running IDLE (via System Preferences -> Dock)."
          )
      return None
  
file_path: cpython/Lib/idlelib/macosx.py
imports: from os.path import expanduser
  import plistlib
  from sys import platform
  import tkinter
label_desc: Use image node_id 7 for calling a global function with example usage: preferTabsPreferenceWarning() and returns: None, None, str