code: def set_cpu_affinity(self, core_list):
      proclist_str = f"[{','.join([str(i) for i in core_list])}]"
      os.environ["OMP_NUM_THREADS"] = str(len(core_list))
      os.environ["OMP_SCHEDULE"] = "STATIC"
      os.environ["OMP_PROC_BIND"] = "CLOSE"
      # KMP_AFFINITY works on intel openmp (intel tensorlow, intel pytorch/ipex)
      # GOMP_CPU_AFFINITY works on gomp (stock pytorch)
      # os.sched_setaffinity works on other threads (stock tensorflow)
      os.environ[
          "KMP_AFFINITY"
      ] = f"verbose,granularity=fine,proclist={proclist_str},explicit"
      os.environ["GOMP_CPU_AFFINITY"] = proclist_str
      os.sched_setaffinity(0, set(core_list))
  
file_path: analytics-zoo/pyzoo/zoo/orca/learn/dl_cluster.py
imports: import ray
  from zoo.orca.cpu_info import schedule_workers
  import os
  import sys
  import logging
label_desc: Use image node_id 2 for calling the ClusterInfo obj's underlying member method code with example usage: obj.set_cpu_affinity(core_list) without return types