code: def __init__(self, params: Optional[Dict[str, str]] = None):
      self.params = params
      if self.params is None:
          self.params = {}
  
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 MetricsConfig object  with example: obj = MetricsConfig(params)