docstr: Attach callback to ignite engine, attached method will be called on the end of each epoch
  Args:
      engine: engine that computes metrics on the end of each epoch and / or on the end of each iteration
  
  Notes:
      metrics computation plugins have to be attached before this one
code: def attach(self, engine: ignite.engine.Engine):
      """Attach callback to ignite engine, attached method will be called on the end of each epoch
      Args:
          engine: engine that computes metrics on the end of each epoch and / or on the end of each iteration
  
      Notes:
          metrics computation plugins have to be attached before this one
      """
      engine.add_event_handler(
          ignite.engine.Events.EPOCH_COMPLETED, self.store
      )
      engine.add_event_handler(
          ignite.engine.Events.ITERATION_COMPLETED, self.store
      )
  
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 2 for calling the PlotLossesCallback obj's underlying member method code with example usage: obj.attach(engine) without return types