class_docstr: Number of threads used by the process.
class_docstr_tok: ["Number","of","threads","used","by","the","process","."]
code: def __init__(self, pid: int) -> None:
      self.samples: Deque[int] = deque([])
      self.pid = pid
      self.process: Optional[psutil.Process] = None
  
imports: import threading
  from collections import deque
  from typing import TYPE_CHECKING, List, Optional
  from .aggregators import aggregate_last, aggregate_mean
  from .asset_registry import asset_registry
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 1 to create a new ProcessCpuThreads object  with example: obj = ProcessCpuThreads(pid)