class_docstr: An testcase widget.
class_docstr_tok: ["An","testcase","widget","."]
code: def tokenize_testcases(self):
      for testcase in self.filtered_testcases:
          for e in testcase["examples"]:
              for tag in ["old", "new"]:
                  if not e[tag]:
                      continue
                  tokens = []
                  if type(e[tag]["text"]) != list:
                      e[tag]["tokens"] = [str(e[tag]["text"])]
                  else:
                      e[tag]["tokens"] = [
                          str(s) for s in e[tag]["text"]
                      ]
                  for sentence in e[tag]["tokens"]:
                      tokens.append(
                          [t.text for t in self.tokenizer(sentence)]
                      )
                  e[tag]["tokens"] = tokens
  
file_path: checklist/checklist/viewer/test_summarizer.py
imports: import ipywidgets
  from traitlets import Unicode, List, Dict
  import os
  import typing
  from spacy.lang.en import English
  from copy import deepcopy
label_desc: Use image node_id 5 for calling the TestSummarizer obj's underlying member method code with example usage: obj.tokenize_testcases() without return types