code: def output_mermaid(self) -> None:
      lines = []
      for item in self._items:
          line = f"{item.src} ->> {item.dst}: {item.info}"
          lines.append((item.ts, line))
  
      header = """
  sequenceDiagram
  participant MainThread as User
  participant MsgRouterThr as router
  participant ChkStopThr as check_stop
  participant NetStatThr as net_stat
  
  participant record_q as record_q
  participant result_q as result_q
  
  participant HandlerThread as handler
  participant StatsThr as stats
  participant send_q as send_q
  participant write_q as write_q
  participant WriterThread as writer
  participant SenderThread as sender
          """
      print(header)
      # TODO: move to common place (sorted sequence items)
      for _, line in sorted(lines):
          print(line)
  
file_path: wandb/tools/tracelog-tool.py
imports: import argparse
  import pathlib
  import sys
  from dataclasses import dataclass
  from typing import List
label_desc: Use image node_id 5 for calling the TracelogParser obj's underlying member method code with example usage: obj.output_mermaid() without return types