def METHOD_NAME(*args, **kwargs):
    stuff = show_func(*args, **kwargs)
    # wait 1 second for the image to show on screen
    figManager = plt.gcf()
    if figManager is not None:
        canvas = figManager.canvas
        # if canvas.figure.stale:
        #     canvas.draw()
        # show(block=False)
        canvas.start_event_loop(1)  # wait time = 1
    plt.close()
    return stuff