code: def __init__(self, handler, namespace: NS) -> None:
      self.handler = handler
      self.namespace = namespace
  
imports: import time
  import typing
  from typing import Dict, List, Optional, Tuple, Union
  import pydantic
  from ._namespace import NS, IndexedNS
label_desc: Use image node_id 1 to create a new MetricsWrap object  with example: obj = MetricsWrap(handler, namespace)