class_docstr: Record CPU information in each worker and respond to resource allocation of CPUs.
  
  Attributes:
      worker_vacant_cpus (dict): Record how many vacant cpus does each
                                 worker has.
      worker_used_cpus (dict): Record how many used cpus does each
                                 worker has.
class_docstr_tok: ["Record","CPU","information","in","each","worker","and","respond","to","resource","allocation","of","CPUs",".","Attributes",":","worker_vacant_cpus","(","dict",")",":","Record","how","many","vacant","cpus","does","each","worker","has",".","worker_used_cpus","(","dict",")",":","Record","how","many","used","cpus","does","each","worker","has","."]
docstr: Return the number of vacant CPUs in the worker.
docstr_tok: ["Return","the","number","of","vacant","CPUs","in","the","worker","."]
code: def get_vacant_cpu(self, worker_address):
      """Return the number of vacant CPUs in the worker."""
      return self.worker_vacant_cpus[worker_address]
  
file_path: PARL/parl/remote/cpu_resource.py
imports: from collections import defaultdict
  from parl.remote.message import AllocatedCpu
label_desc: Use image node_id 7 for calling the CpuResource obj's underlying member method code with example usage: obj.get_vacant_cpu(worker_address) and returns: self