code: def test_tensorboard():
      groups = {
          "acccuracy": ["acc", "val_acc"],
          "log-loss": ["loss", "val_loss"],
      }
      logger = TensorboardTFLogger()
  
      liveplot = PlotLosses(groups=groups, outputs=(logger,))
  
      for i in range(3):
          liveplot.update(
              {
                  "acc": 1 - np.random.rand() / (i + 2.0),
                  "val_acc": 1 - np.random.rand() / (i + 0.5),
                  "loss": 1.0 / (i + 2.0),
                  "val_loss": 1.0 / (i + 0.5),
              }
          )
          liveplot.send()
  
      assert all(
          [
              f.startswith("events.out.tfevents.")
              for f in os.listdir(logger._path)
          ]
      )
  
imports: import os
  import numpy
  from livelossplot import PlotLosses
  from livelossplot.outputs import TensorboardTFLogger
label_desc: Use image node_id 1 for calling a global function with example usage: test_tensorboard() without return types