code: def __init__(self, connector, n_parallel, *args, **kwargs):
      super(CPUResourceManager, self).__init__(
          connector, n_parallel, *args, **kwargs
      )
      self.executor = ResourceThreadPoolExecutor(max_workers=n_parallel)
      self.n_parallel = n_parallel
      self.lock = threading.Lock()
      self.running = []
      self.save_model = kwargs.get("save_model", False)
      self.script = kwargs.get("script", None)
      self.workingdir = kwargs.get("workingdir", None)
      self.one_shot = kwargs.get("one_shot", False)
      self.runtime_args = kwargs.get("runtime_args", {})
  
file_path: auptimizer/src/aup/EE/Resource/CPUResourceManager.py
imports: import logging
  import os
  import subprocess
  import threading
  import sys
  import json
  from numpy import random
  from .AbstractResourceManager import AbstractResourceManager
  from ...utils import parse_result, parse_one_line
  from .AbstractResourceManager import _SupportResource
  from ...aup import BasicConfig
  from ..Job import Job
  from .utils.ResourceThreadPoolExecutor import ResourceThreadPoolExecutor
label_desc: Use image node_id 1 to create a new CPUResourceManager object from inherited base classes: AbstractResourceManager with example: obj = CPUResourceManager(connector, n_parallel)