code: def get_all_metrics(self) -> Dict[str, Metric]:
      if self._tmp_all_metrics is not None:
          return self._tmp_all_metrics
  
      meta_file_path = get_run_objects_meta_file_path(
          self.repo.path, self.experiment_name, self.run_hash
      )
      metrics = {}
      try:
          with open(meta_file_path, "r+") as meta_file:
              artifacts = json.loads(meta_file.read().strip())
              # Filter only metrics
              for artifact in artifacts.values():
                  if artifact["type"] == "metrics":
                      metric = Metric(
                          self.repo,
                          self,
                          artifact["name"],
                          artifact.get("context"),
                      )
                      metrics[artifact["name"]] = metric
      except:
          pass
  
      self._tmp_all_metrics = metrics
  
      return metrics
  
file_path: aim/aim/cli/upgrade/_legacy_repo/repo/run.py
imports: import os
  from typing import Optional, Dict
  import json
  from aim.cli.upgrade._legacy_repo.configs import AIM_OBJECTS_DIR_NAME, AIM_MAP_DIR_NAME, AIM_COMMIT_CONFIG_FILE_NAME
  from aim.cli.upgrade._legacy_repo.repo.utils import get_run_objects_dir_path, get_run_objects_meta_file_path
  from aim.cli.upgrade._legacy_repo.repo.metric import Metric
label_desc: Use image node_id 10 for calling the Run obj's underlying member method code with example usage: obj.get_all_metrics() and returns: metrics, self