class_docstr: Data structure that manages the metric data (e.g., loss, accuracy, etc.).
  
  NOTE: Multiple metrics and minimized metrics are not supported in the current iteration.
  
  Parameters
  ----------
  strict
      Whether to convert the metrics into a float.
      If ``true``, only float metrics or dict with "default" are accepted.
code: def _dump(self) -> dict:
      rv: dict[str, Any] = {"intermediates": self._intermediates}
      if self.final is not None:
          rv["final"] = self.final
      return rv
  
file_path: nni/nni/nas/space/metrics.py
imports: from __future__ import annotations
  from typing import Any, Sequence, cast
  from nni.typehint import TrialMetric
label_desc: Use image node_id 4 for calling the Metrics obj's underlying member method code with example usage: obj._dump() and returns: rv