code: def get_data(
      self, request: Request, is_dist_run: bool = False
  ) -> Dict[str, Union[str, any]]:
      u = auth.get_auth_user(request)
      if u:
          is_project_run = u.default_project.is_project_run(
              self.run_uuid
          )
      else:
          is_project_run = False
  
      configs = [{"key": k, **c} for k, c in self.configs.items()]
      formatted_repo = self.format_remote_repo(self.repo_remotes)
  
      other_rank_run_uuids = self.get_rank_uuids()
  
      # get the std out and std error from main rank
      stdout = self.stdout + self.stdout_unmerged
      stderr = self.stderr + self.stderr_unmerged
      run_logger = self.logger + self.logger_unmerged
  
      if self.world_size != 0 and other_rank_run_uuids and is_dist_run:
          run_uuid = other_rank_run_uuids[self.main_rank]
          run = get(run_uuid)
          if run:
              stdout = run.stdout + run.stdout_unmerged
              stderr = run.stderr + run.stderr_unmerged
              run_logger = run.logger + run.logger_unmerged
  
      return {
          "run_uuid": self.run_uuid,
          "rank": self.rank,
          "other_rank_run_uuids": other_rank_run_uuids,
          "world_size": self.world_size,
          "is_project_run": is_project_run,
          "name": self.name,
          "comment": self.comment,
          "note": self.note,
          "tags": self.tags,
          "start_time": self.start_time,
          "start_step": self.start_step,
          "python_file": self.python_file,
          "repo_remotes": formatted_repo,
          "commit": self.format_commit(formatted_repo, self.commit),
          "commit_message": self.commit_message,
          "is_claimed": self.is_claimed,
          "size": self.size,
          "size_checkpoints": self.size_checkpoints,
          "size_tensorboard": self.size_tensorboard,
          "computer_uuid": self.computer_uuid,
          "configs": configs,
          "stdout": stdout,
          "logger": run_logger,
          "stderr": stderr,
          "favourite_configs": self.favourite_configs,
          "selected_configs": self.selected_configs,
      }
  
imports: import time
  from typing import Dict, List, Optional, Union, NamedTuple
  from fastapi import Request
  from labml_db import Model, Key, Index, load_keys
  from ..None import auth
  from .None import user
  from ..None import utils
  from .None import project
  from .None import computer
  from .None import status
  from ..None import settings
  from ..analyses.experiments.metrics import MetricsAnalysis, MetricsPreferencesIndex, MetricsPreferencesModel
  from ..logger import logger
  from ..None import analyses
  from ..enums import RunEnums
label_desc: Use image node_id 12 for calling the Run obj's underlying member method code with example usage: obj.get_data(request, is_dist_run) and returns: dict