class_docstr: Accelerator for CPU devices.
class_docstr_tok: ["Accelerator","for","CPU","devices","."]
docstr: Get CPU stats from ``psutil`` package.
docstr_tok: ["Get","CPU","stats","from","``","psutil","``","package","."]
code: def get_device_stats(self, device: _DEVICE) -> Dict[str, Any]:
      """Get CPU stats from ``psutil`` package."""
      return get_cpu_stats()
  
imports: from typing import Any, Dict, List, Union
  import torch
  from lightning_utilities.core.imports import RequirementCache
  from typing_extensions import override
  from lightning.fabric.accelerators import _AcceleratorRegistry
  from lightning.fabric.accelerators.cpu import _parse_cpu_cores
  from lightning.fabric.utilities.types import _DEVICE
  from lightning.pytorch.accelerators.accelerator import Accelerator
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
label_desc: Use image node_id 2 for calling the CPUAccelerator obj's underlying member method code with example usage: obj.get_device_stats(device) and returns: get_cpu_stats