code: def category_words(categorized_corpus):
      for category in categorized_corpus.categories():
          yield category, categorized_corpus.words(
              categories=[category]
          )
  
file_path: nltk-trainer/nltk_trainer/classification/corpus.py
imports: import itertools
label_desc: Use image node_id 1 for calling a global function with example usage: category_words(categorized_corpus) without return types