code: def _mac_ver_xml():
      fn = "/System/Library/CoreServices/SystemVersion.plist"
      if not os.path.exists(fn):
          return None
  
      try:
          import plistlib
      except ImportError:
          return None
  
      with open(fn, "rb") as f:
          pl = plistlib.load(f)
      release = pl["ProductVersion"]
      versioninfo = ("", "", "")
      machine = os.uname().machine
      if machine in ("ppc", "Power Macintosh"):
          # Canonical name
          machine = "PowerPC"
  
      return release, versioninfo, machine
  
imports: import collections
  import os
  import re
  import sys
  import functools
  import itertools
label_desc: Use image node_id 8 for calling a global function with example usage: _mac_ver_xml() and returns: release,  versioninfo,  machine, None, None