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