code: def plot_grads_plotly():
      train_cli = tw.WatcherClient()
      grads = train_cli.create_stream(
          event_name="batch",
          expr="lambda d:grads_abs_mean(d.model)",
          throttle=1,
      )
      p = tw.plotly.line_plot.LinePlot("Demo")
      p.subscribe(
          grads,
          xtitle="Layer",
          ytitle="Gradients",
          history_len=30,
          new_on_eval=True,
      )
      utils.wait_key()
  
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 3 for calling a global function with example usage: plot_grads_plotly() without return types