code: def _cpu_count_user(os_cpu_count):
      """Number of user defined available CPUs"""
      cpu_count_affinity = _cpu_count_affinity(os_cpu_count)
  
      cpu_count_cgroup = _cpu_count_cgroup(os_cpu_count)
  
      # User defined soft-limit passed as a loky specific environment variable.
      cpu_count_loky = int(
          os.environ.get("LOKY_MAX_CPU_COUNT", os_cpu_count)
      )
  
      return min(cpu_count_affinity, cpu_count_cgroup, cpu_count_loky)
  
imports: import os
  import sys
  import math
  import subprocess
  import traceback
  import warnings
  import multiprocessing
  from multiprocessing import get_context
  from multiprocessing.context import BaseContext
  from .process import LokyProcess, LokyInitMainProcess
label_desc: Use image node_id 7 for calling a global function with example usage: _cpu_count_user(os_cpu_count) and returns: min