code: def _make_labels_map(original_code, exception_entries=()):
      jump_targets = set(findlabels(original_code))
      labels = set(jump_targets)
      for start, end, target, _, _ in exception_entries:
          labels.add(start)
          labels.add(end)
          labels.add(target)
      labels = sorted(labels)
      labels_map = {
          offset: i + 1 for (i, offset) in enumerate(sorted(labels))
      }
      for e in exception_entries:
          e.start_label = labels_map[e.start]
          e.end_label = labels_map[e.end]
          e.target_label = labels_map[e.target]
      return labels_map
  
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 23 for calling a global function with example usage: _make_labels_map(original_code, exception_entries) and returns: labels_map