class_docstr: Exception raised if failure was detected as part of a checkpoint load or save.
code: def __str__(self):
      str = f"CheckpointException ranks:{self._failures.keys()}\n"
      for rank, exc_pair in self._failures.items():
          exc, trace = exc_pair
          str += f"Traceback (most recent call last): (RANK {rank})\n"
          if trace is not None:
              str += "".join(tb.format_list(trace))
          str += "".join(tb.format_exception_only(type(exc), value=exc))
      return str
  
file_path: pytorch/torch/distributed/checkpoint/api.py
imports: import traceback
  from typing import Any, Dict, Tuple
label_desc: Use image node_id 3 for calling the CheckpointException obj's underlying member method code with example usage: obj.__str__() and returns: str