docstr: Formats a single torch._C._profiler.CapturedTraceback into a list of
  strings equivalent to the output of traceback.format_list.  Note that if
  pass it CapturedTraceback with C++ traces,  it is better not to use this
  function and use the batch formatting API format_captured_tbs to amortize
  the cost of symbolization
docstr_tok: ["Formats","a","single","torch._C._profiler.CapturedTraceback","into","a","list","of","strings","equivalent","to","the","output","of","traceback.format_list",".","Note","that","if","pass","it","CapturedTraceback","with","C++","traces",",","it","is","better","not","to","use","this","function","and","use","the","batch","formatting","API","format_captured_tbs","to","amortize","the","cost","of","symbolization"]
code: def format(self):
      """
      Formats a single torch._C._profiler.CapturedTraceback into a list of
      strings equivalent to the output of traceback.format_list.  Note that if
      pass it CapturedTraceback with C++ traces,  it is better not to use this
      function and use the batch formatting API format_captured_tbs to amortize
      the cost of symbolization
      """
      return traceback.format_list(self.summary())
  
imports: from types import TracebackType
  from typing import List, Optional
  import tempfile
  import traceback
  import contextlib
  import inspect
  import os.path
label_desc: Use image node_id 6 for calling the CapturedTraceback obj's underlying member method code with example usage: obj.format() and returns: traceback