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():
          try:
              ver_str = (
                  _subprocess.run(
                      ["sw_vers", "-productVersion"],
                      stdout=_subprocess.PIPE,
                  )
                  .stdout.decode("utf-8")
                  .strip("\n")
              )
              return tuple([int(v) for v in ver_str.split(".")])
          except:
              raise Exception("Unable to determine the macOS version")
      return ()
  
imports: from collections.abc import Iterable
  from functools import lru_cache
  import math
  import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from typing import Optional, Union
  import warnings
  import numpy
  import coremltools
  from coremltools import ComputeUnit
  from coremltools.converters.mil.mil.passes.defs.preprocess import NameSanitizer
  from coremltools.proto import Model_pb2
  import coremltools.proto.MIL_pb2
  from .._deps import _HAS_SCIPY
label_desc: Use image node_id 25 for calling a global function with example usage: _macos_version() and returns: , tuple