code: def split_indices(s):
      """Splits a string on whitespaces and records the indices of each in the original string.
      @:return generator((word, (start_idx, end_idx)), ...)
      """
      return (
          (m.group(0), (m.start(), m.end() - 1))
          for m in re.finditer(r"\S+", s)
      )
  
imports: import re
  import string
  import timeit
  import pickle
  import traceback
  from pprint import pprint
label_desc: Use image node_id 3 for calling a global function with example usage: split_indices(s) and returns: unknown