code: def split_words_on_whitespace(
      text: str,
  ) -> Tuple[List[str], List[str]]:
      # Beginning and end are treated as whitespace even if they are empty strings
      split_elements = SPLIT_BY_WHITESPACE.split(text)
      # Return words and whitespace separately
      return split_elements[1::2], split_elements[::2]
  
file_path: AugLy/augly/text/augmenters/utils.py
imports: import re
  from typing import List, Optional, Tuple
  import regex
  from augly.utils.libsndfile import install_libsndfile
  from nlpaug import Augmenter
  from nlpaug.util import Method
label_desc: Use image node_id 3 for calling a global function with example usage: split_words_on_whitespace(text) and returns: split_elements,  split_elements