class_docstr: Minimally imitate editor.EditorWindow class.
      
code: def __init__(
      self, flist=None, filename=None, key=None, root=None, text=None
  ):  # Allow real Text with mock Editor.
      self.text = text or Text()
      self.undo = UndoDelegator()
  
file_path: cpython/Lib/idlelib/idle_test/mock_idle.py
imports: from idlelib.idle_test.mock_tk import Text
label_desc: Use image node_id 1 to create a new Editor object  with example: obj = Editor(flist, filename, key, root, text)