code: def usable_cpu_count():
      """Get number of CPUs usable by the current process.
  
      Takes into consideration cpusets restrictions.
  
      Returns
      -------
      int
      """
      try:
          result = len(os.sched_getaffinity(0))
      except AttributeError:
          try:
              result = len(psutil.Process().cpu_affinity())
          except AttributeError:
              result = os.cpu_count()
      return result
  
imports: import numpy
  import re
  import warnings
  import os.path
  import psutil
  from .fmrisim import generate_stimfunction, _double_gamma_hrf, convolve_hrf
  from scipy.fftpack import fft, ifft
  import logging
label_desc: Use image node_id 11 for calling a global function with example usage: usable_cpu_count() and returns: result