class_docstr: Base protocol for individual metrics.
class_docstr_tok: ["Base","protocol","for","individual","metrics","."]
docstr: Sample the metric.
docstr_tok: ["Sample","the","metric","."]
code: def sample(self) -> None:
      """Sample the metric."""
      ...
  
imports: import datetime
  import logging
  import sys
  import threading
  from typing import TYPE_CHECKING, Any, List, Optional, TypeVar
  import psutil
label_desc: Use image node_id 1 for calling the Metric obj's underlying member method code with example usage: obj.sample() without return types