docstr: Store computed metrics, that will be send to main logger
  Args:
      engine: engine with state.metrics
code: def store(self, engine: ignite.engine.Engine):
      """Store computed metrics, that will be send to main logger
      Args:
          engine: engine with state.metrics
      """
      metrics = {}
      if (
          not hasattr(engine.state, "metrics")
          or len(engine.state.metrics) == 0
      ):
          return
      kwargs = (
          dict(
              current_step=global_step_from_engine(self.train_engine)(
                  self.train_engine, self.train_engine.last_event_name
              )
          )
          if self.train_engine
          else {}
      )
      for key, val in engine.state.metrics.items():
          metrics[key] = val
      self.liveplot.update(metrics, **kwargs)
      if not self.train_engine:
          self.send()
  
file_path: livelossplot/livelossplot/inputs/pytorch_ignite.py
imports: from typing import Optional
  import ignite.engine
  from ignite.handlers import global_step_from_engine
  from livelossplot.plot_losses import PlotLosses
label_desc: Use image node_id 3 for calling the PlotLossesCallback obj's underlying member method code with example usage: obj.store(engine) without return types