code: def whitespace_nlp(doc, entity_type=None, tag_type=None):
      toks = _regex_parse_sentence(doc, entity_type, tag_type)
      return Doc([toks])
  
file_path: scattertext/scattertext/WhitespaceNLP.py
imports: import re
  from scattertext.emojis.ProcessedEmojiStructure import VALID_EMOJIS
label_desc: Use image node_id 1 for calling a global function with example usage: whitespace_nlp(doc, entity_type, tag_type) and returns: Doc