code: def cpuCount():
      """
      Returns the number of CPUs in the system
      """
      if sys.platform == "win32":
          try:
              num = int(os.environ["NUMBER_OF_PROCESSORS"])
          except (ValueError, KeyError):
              num = -1
      elif sys.platform == "darwin":
          try:
              num = int(os.popen("sysctl -n hw.ncpu").read())
          except ValueError:
              num = -1
      else:
          try:
              num = os.sysconf("SC_NPROCESSORS_ONLN")
          except (ValueError, OSError, AttributeError):
              num = -1
  
      return num
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: cpuCount() and returns: num