code: def _poll(self):
      try:
          event = self.queue.get(block=False)
      except q.Empty:
          pass
      else:
          if event == CORPUS_LOADED_EVENT:
              self.handle_corpus_loaded(event)
          elif event == ERROR_LOADING_CORPUS_EVENT:
              self.handle_error_loading_corpus(event)
      self.after = self.top.after(POLL_INTERVAL, self._poll)
  
imports: import queue
  import threading
  from tkinter import END, LEFT, SUNKEN, Button, Frame, IntVar, Label, Menu, OptionMenu, Scrollbar, StringVar, Text, Tk
  from tkinter.font import Font
  from nltk.corpus import alpino, brown, cess_cat, cess_esp, floresta, indian, mac_morpho, machado, nps_chat, sinica_treebank, treebank
  from nltk.probability import FreqDist
  from nltk.util import in_idle
label_desc: Use image node_id 11 for calling the CollocationsView obj's underlying member method code with example usage: obj._poll() without return types