code: def __init__(self):
      self._step_metrics: typing.Dict[typing.Any, "StepMetrics"] = {}
      self._one_time_metrics: typing.Dict[
          typing.Any, "OneTimeMetrics"
      ] = {}
  
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 InMemoryMetricsHandler object from inherited base classes: BaseMetricsHandler with example: obj = InMemoryMetricsHandler()