code: def tearDownClass(cls):
      del cls.text, cls.do_rstrip, cls.editor
      cls.root.update_idletasks()
      cls.root.destroy()
      del cls.root
  
imports: from idlelib import format
  import unittest
  from unittest import mock
  from test.support import requires
  from tkinter import Tk, Text
  from idlelib.editor import EditorWindow
  from idlelib.idle_test.mock_idle import Editor
label_desc: Use image node_id 2 for calling the RstripTest obj's underlying member method code with example usage: obj.tearDownClass(cls) without return types