code: def __init__(self, cmd: list[str], output: str):
      if isinstance(output, bytes):
          output = output.decode("utf-8")
  
      super().__init__(
          textwrap.dedent(
              """
                      C++ compile error
  
                      Command:
                      {cmd}
  
                      Output:
                      {output}
                  """
          )
          .strip()
          .format(cmd=" ".join(cmd), output=output)
      )
  
imports: from __future__ import annotations
  import os
  import tempfile
  import textwrap
  from functools import lru_cache
label_desc: Use image node_id 1 to create a new CppCompileError object from inherited base classes: RuntimeError with example: obj = CppCompileError(cmd, output)