code: def img_in_class():
      cli_train = tw.WatcherClient()
  
      imgs = cli_train.create_stream(
          event_name="batch",
          expr="topk_all(l, batch_vals=lambda b: (b.batch.loss_all, (b.batch.input, b.batch.output), b.batch.target), \
              out_f=image_class_outf, order='dsc')",
          throttle=1,
      )
      img_plot = tw.ImagePlot()
      img_plot.subscribe(imgs, viz_img_scale=3)
      img_plot.show()
  
      tw.image_utils.plt_loop()
  
file_path: tensorwatch/test/mnist/cli_mnist.py
imports: import tensorwatch
  import time
  import math
  from tensorwatch import utils
label_desc: Use image node_id 1 for calling a global function with example usage: img_in_class() without return types