human
I wrote the below code

    class UI(tkinter.Label, ):
        def __init__(self, master, im):
            if (im.mode == '1'):
                self.image = BitmapImage(im, foreground='white', master=master)
            else:
                self.image = PhotoImage(im, master=master)
            tkinter.Label.__init__(self, master, image=self.image, bg='black', bd=0)
    if (not tkinter._default_root):
        raise IOError('tkinter    not    initialized')
    top = tkinter.Toplevel()
    if title:
        top.title(title)
    UI(top, image).pack()

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def _show(image, title):