class_docstr: TrialMetricData stores the metric data of a trial job.
  A trial job may have both intermediate metric and final metric.
  
  Attributes
  ----------
  timestamp: int
      Time stamp.
  trialJobId: str
      Trial job id.
  parameterId: int
      Parameter id.
  type: str
      Metric type, `PERIODICAL` for intermediate result and `FINAL` for final result.
  sequence: int
      Sequence number in this trial.
  data: serializable object, usually a number, or a dict with key "default" and other extra keys
      Metric data.
code: def __init__(
      self,
      timestamp: int,
      trialJobId: str,
      parameterId: int,
      type: str,
      sequence: int,
      data: str,
  ):  # pylint: disable=W0622
      self.timestamp = timestamp
      self.trialJobId = trialJobId
      self.parameterId = parameterId
      self.type = type
      self.sequence = sequence
      self.data = json.loads(json.loads(data))
  
file_path: nni/nni/experiment/data.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  import json
  from typing import Any, List, Optional
label_desc: Use image node_id 1 to create a new TrialMetricData object  with example: obj = TrialMetricData(timestamp, trialJobId, parameterId, type, sequence, data)