code: def tearDownClass(cls):
      cls.percolator.redir.close()
      del cls.percolator, cls.text
      cls.root.destroy()
      del cls.root
  
file_path: cpython/Lib/idlelib/idle_test/test_undo.py
imports: from idlelib.undo import UndoDelegator
  import unittest
  from test.support import requires
  from unittest.mock import Mock
  from tkinter import Text, Tk
  from idlelib.percolator import Percolator
label_desc: Use image node_id 2 for calling the UndoDelegatorTest obj's underlying member method code with example usage: obj.tearDownClass(cls) without return types