code: def distb(
      tb=None,
      *,
      file=None,
      show_caches=False,
      adaptive=False,
      show_offsets=False,
  ):
      """Disassemble a traceback (default: last traceback)."""
      if tb is None:
          try:
              if hasattr(sys, "last_exc"):
                  tb = sys.last_exc.__traceback__
              else:
                  tb = sys.last_traceback
          except AttributeError:
              raise RuntimeError(
                  "no last traceback to disassemble"
              ) from None
          while tb.tb_next:
              tb = tb.tb_next
      disassemble(
          tb.tb_frame.f_code,
          tb.tb_lasti,
          file=file,
          show_caches=show_caches,
          adaptive=adaptive,
          show_offsets=show_offsets,
      )
  
imports: import sys
  import types
  import collections
  import io
  from opcode import *
  from opcode import __all__, _cache_format, _inline_cache_entries, _nb_ops, _intrinsic_1_descs, _intrinsic_2_descs, _specializations, _specialized_opmap
label_desc: Use image node_id 3 for calling a global function with example usage: distb(tb) without return types