code: def _make_top_and_button(testobj):
      global root
      top = Toplevel(root)
      testobj.addCleanup(top.destroy)
      top.title("Test tooltip")
      button = Button(top, text="ToolTip test button")
      button.pack()
      testobj.addCleanup(button.destroy)
      top.lift()
      return top, button
  
imports: from idlelib.tooltip import TooltipBase, Hovertip
  from test.support import requires
  from functools import wraps
  import time
  from tkinter import Button, Tk, Toplevel
  import unittest
label_desc: Use image node_id 4 for calling a global function with example usage: _make_top_and_button(testobj) and returns: top,  button