code: def __init__(
      self,
      name: str,
      type: Optional[str],
      groups: List[Tuple[str, Optional[int]]],
      data: Union[List, Dict],
  ) -> None:
      self.name = name
      self.groups = groups
      self.type = type
      self.data = data
  
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 OneTimeMetrics object  with example: obj = OneTimeMetrics(name, type, groups, data)