class_docstr: An example widget.
class_docstr_tok: ["An","example","widget","."]
docstr: Event handler. Users trigger python functions through the frontend interaction.
docstr_tok: ["Event","handler",".","Users","trigger","python","functions","through","the","frontend","interaction","."]
code: def handle_events(self, _, content, buffers):
      """
      Event handler. Users trigger python functions through the frontend interaction.
      """
      if content.get("event", "") == "select_suggests":
          idxes = content.get("idxes", [])
          selected_suggests = [self.bert_suggests[i] for i in idxes]
          if self.select_suggests_fn:
              self.select_suggests_fn(selected_suggests)
  
file_path: checklist/checklist/viewer/template_editor.py
imports: import ipywidgets
  from traitlets import Unicode, List, Dict
  import os
  import typing
  import itertools
label_desc: Use image node_id 3 for calling the TemplateEditor obj's underlying member method code with example usage: obj.handle_events(_, content, buffers) without return types