class_docstr: Process memory usage in percent.
class_docstr_tok: ["Process","memory","usage","in","percent","."]
code: def sample(self) -> None:
      if self.process is None:
          self.process = psutil.Process(self.pid)
  
      self.samples.append(self.process.memory_percent())
  
imports: import threading
  from collections import deque
  from typing import TYPE_CHECKING, List, Optional
  from .aggregators import aggregate_mean
  from .asset_registry import asset_registry
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 2 for calling the ProcessMemoryPercent obj's underlying member method code with example usage: obj.sample() without return types