code: def __init__(self, group_name: str, handler: MetricHandler):
      self.group_name = group_name
      self.handler = handler
  
imports: import abc
  import time
  import warnings
  from collections import namedtuple
  from functools import wraps
  from typing import Dict, Optional
label_desc: Use image node_id 1 to create a new MetricStream object  with example: obj = MetricStream(group_name, handler)