class_docstr: @deprecated: Use TrialMetrics instead.
  
  Specifies a training metric report that the trial reported.
class_docstr_tok: ["@","deprecated",":","Use","TrialMetrics","instead",".","Specifies","a","training","metric","report","that","the","trial","reported","."]
code: def _from_bindings(  # type: ignore
      cls,
      metric_report: bindings.v1MetricsReport,
  ) -> "TrainingMetrics":
      return cast(
          "TrainingMetrics",
          super()._from_bindings(metric_report, util._LEGACY_TRAINING),
      )
  
file_path: determined/harness/determined/common/experimental/metrics.py
imports: import dataclasses
  import datetime
  from typing import Any, Dict, List, Optional, cast
  from determined.common import util
  from determined.common.api import bindings
label_desc: Use image node_id 2 for calling the TrainingMetrics obj's underlying member method code with example usage: obj._from_bindings(cls, metric_report) and returns: cast