code: def plot_grads():
      train_cli = tw.WatcherClient()
  
      grads = train_cli.create_stream(
          event_name="batch",
          expr="lambda d:grads_abs_mean(d.model)",
          throttle=1,
      )
      grad_plot = tw.LinePlot()
      grad_plot.subscribe(
          grads,
          xtitle="Layer",
          ytitle="Gradients",
          clear_after_each=1,
          history_len=40,
          dim_history=True,
      )
      grad_plot.show()
  
      tw.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 4 for calling a global function with example usage: plot_grads() without return types