code: def __init__(
      self, repo, run, name: str, context: Optional[list] = None
  ):
      self.repo = repo
      self.run = run
      self.name = name
      self.context = context
      self._traces = []  # type: List[Trace]
      self._tmp_all_traces = None  # type: Optional[List[Trace]]
      self._artifact_storage_opened = False
  
file_path: aim/aim/cli/upgrade/_legacy_repo/repo/metric.py
imports: from typing import Optional, List
  from aim.cli.upgrade._legacy_repo.repo.trace import Trace
label_desc: Use image node_id 1 to create a new Metric object from inherited base classes: object with example: obj = Metric(repo, run, name, context)