code: def word_tokenize(text, include_punc=True, *args, **kwargs):
      """Convenience function for tokenizing text into words.
  
      NOTE: NLTK's word tokenizer expects sentences as input, so the text will be
      tokenized to sentences before being tokenized to words.
      """
      words = chain.from_iterable(
          _word_tokenizer.itokenize(
              sentence, include_punc=include_punc, *args, **kwargs
          )
          for sentence in sent_tokenize(text)
      )
      return words
  
file_path: TextBlob/textblob/tokenizers.py
imports: from __future__ import absolute_import
  from itertools import chain
  import nltk
  from textblob.utils import strip_punc
  from textblob.base import BaseTokenizer
  from textblob.decorators import requires_nltk_corpus
label_desc: Use image node_id 1 for calling a global function with example usage: word_tokenize(text, include_punc) and returns: words