class_docstr: A `Callback` to handle the display of progress bars
class_docstr_tok: ["A","`","Callback","`","to","handle","the","display","of","progress","bars"]
code: def after_batch(self):
      self.pbar.update(self.iter + 1)
      if hasattr(self, "smooth_loss"):
          self.pbar.comment = f"{self.smooth_loss.item():.4f}"
  
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 7 for calling the ProgressCallback obj's underlying member method code with example usage: obj.after_batch() without return types