code: def _macos_version():
      """
      Returns macOS version as a tuple of integers, making it easy to do proper
      version comparisons. On non-Macs, it returns an empty tuple.
      """
      if _is_macos():
          import platform
  
          ver_str = platform.mac_ver()[0]
          return tuple([int(v) for v in ver_str.split(".")])
  
      return ()
  
imports: import math
  import numpy
  import os
  import six
  import warnings
  import sys
  from coremltools.proto import Model_pb2
  from coremltools.models._deprecation import deprecated
  from .._deps import _HAS_SKLEARN
label_desc: Use image node_id 25 for calling a global function with example usage: _macos_version() and returns: , tuple