code: def whitespace_tokenize(text, idxs=None):
      """Runs basic whitespace cleaning and splitting on a piece of text."""
      tokens = [""]
      idxs_out = [[]]
      for i, char in zip(idxs or range(len(text)), text):
          if _is_whitespace(char):
              if tokens[-1] != "":
                  tokens.append("")
                  idxs_out.append([])
          else:
              idxs_out[-1].append(i)
              tokens[-1] += char
  
      if tokens[-1] == "":
          tokens = tokens[:-1]
          idxs_out = idxs_out[:-1]
  
      return tokens, idxs_out
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import re
  import unicodedata
  import six
  import numpy
  import tensorflow
label_desc: Use image node_id 8 for calling a global function with example usage: whitespace_tokenize(text, idxs) and returns: tokens,  idxs_out