code: def _parse_exception_table(code):
      iterator = iter(code.co_exceptiontable)
      entries = []
      try:
          while True:
              start = _parse_varint(iterator) * 2
              length = _parse_varint(iterator) * 2
              end = start + length
              target = _parse_varint(iterator) * 2
              dl = _parse_varint(iterator)
              depth = dl >> 1
              lasti = bool(dl & 1)
              entries.append(
                  _ExceptionTableEntry(start, end, target, depth, lasti)
              )
      except StopIteration:
          return entries
  
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 18 for calling a global function with example usage: _parse_exception_table(code) and returns: entries