class_docstr: Class for monitoring CPU stats.
class_docstr_tok: ["Class","for","monitoring","CPU","stats","."]
code: def collect_metrics(self):
      # Get CPU metrics.
      cpu_percent = psutil.cpu_percent()
      self._metrics["cpu_utilization_percentage"].append(cpu_percent)
  
      system_memory = psutil.virtual_memory()
      self._metrics["system_memory_usage_megabytes"].append(
          system_memory.used / 1e6
      )
      self._metrics["system_memory_usage_percentage"].append(
          system_memory.used / system_memory.total * 100
      )
  
imports: import psutil
  from mlflow.system_metrics.metrics.base_metrics_monitor import BaseMetricsMonitor
label_desc: Use image node_id 1 for calling the CPUMonitor obj's underlying member method code with example usage: obj.collect_metrics() without return types