code: def test_bokeh_plot():
      logger = BokehPlot()
  
      liveplot = PlotLosses(outputs=[logger], mode="script")
  
      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 os.path.isfile(logger.output_file)
  
imports: import os
  import numpy
  from livelossplot import PlotLosses
  from livelossplot.outputs import BokehPlot
label_desc: Use image node_id 1 for calling a global function with example usage: test_bokeh_plot() without return types