code: def multi_category_sent_words(categorized_corpus, fileid_prefix=""):
      for fileid, categories in corpus_fileid_categories(
          categorized_corpus, fileid_prefix
      ):
          for sent in categorized_corpus.sents(fileids=[fileid]):
              yield sent, categories
  
file_path: nltk-trainer/nltk_trainer/classification/corpus.py
imports: import itertools
label_desc: Use image node_id 7 for calling a global function with example usage: multi_category_sent_words(categorized_corpus, fileid_prefix) without return types