code: def test(aggimage):
      r = Tk.Tk()
      c = Tk.Canvas(r, width=aggimage.width, height=aggimage.height)
      c.pack()
      p = Tk.PhotoImage(width=aggimage.width, height=aggimage.height)
      blit(p, aggimage)
      c.create_image(aggimage.width, aggimage.height, image=p)
      blit(p, aggimage)
      while True:
          r.update_idletasks()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import tkinter
  import numpy
  from matplotlib.backends import _tkagg
label_desc: Use image node_id 2 for calling a global function with example usage: test(aggimage) without return types