code: def epoch_stats():
      train_cli = tw.WatcherClient(port=0)
      test_cli = tw.WatcherClient(port=1)
  
      plot = tw.LinePlot()
  
      train_loss = train_cli.create_stream(
          event_name="epoch",
          expr="lambda v:(v.metrics.epoch_index, v.metrics.epoch_loss)",
      )
      plot.subscribe(train_loss, xtitle="Epoch", ytitle="Train Loss")
  
      test_acc = test_cli.create_stream(
          event_name="epoch",
          expr="lambda v:(v.metrics.epoch_index, v.metrics.epoch_accuracy)",
      )
      plot.subscribe(
          test_acc, xtitle="Epoch", ytitle="Test Accuracy", ylim=(0, 1)
      )
  
      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 6 for calling a global function with example usage: epoch_stats() without return types