code: def cpu_count() -> int:
      
      if multiprocessing is None:
          return 1
      try:
          return multiprocessing.cpu_count()
      except NotImplementedError:
          pass
      try:
          return os.sysconf("SC_NPROCESSORS_CONF")
      except (AttributeError, ValueError):
          pass
      gen_log.error("Could not detect number of processors; assuming 1")
      return 1
docs: Returns the number of processors on this machine.