code: def setUpClass(cls):
      requires("gui")
      cls.root = Tk()
      cls.root.withdraw()
      cls.text = Text(cls.root)
      cls.editor = MockEditor(text=cls.text)
      cls.do_rstrip = ft.Rstrip(cls.editor).do_rstrip
  
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 1 for calling the RstripTest obj's underlying member method code with example usage: obj.setUpClass(cls) without return types