code: def _cpu_count():
      """Try to guess the number of CPUs in the system.
  
      We use the number provided by psutil if that is installed.
      If not, we use the number provided by multiprocessing, but assume
      that half of the cpus are only hardware threads and ignore those.
      """
      try:
          cpus = multiprocessing.cpu_count() // 2
      except NotImplementedError:
          cpus = 1
      return cpus
  
imports: import ctypes
  import logging
  import multiprocessing
  import multiprocessing.sharedctypes
  import platform
  import time
  import traceback
  from collections import namedtuple
  from typing import Dict, List, Sequence
  import cloudpickle
  import numpy
  from fastprogress.fastprogress import progress_bar
  from pymc.blocking import DictToArrayBijection
  from pymc.exceptions import SamplingError
  from pymc.util import RandomSeed
label_desc: Use image node_id 3 for calling a global function with example usage: _cpu_count() and returns: cpus