class_docstr: Fit just `pct` of an epoch, then stop
class_docstr_tok: ["Fit","just","`","pct","`","of","an","epoch",",","then","stop"]
code: def after_batch(self):
      if self.iter / self.n_iter < self.pct:
          return
      if self.training:
          raise CancelTrainException
      if self.short_valid:
          raise CancelValidException
  
imports: from __future__ import annotations
  from ..basics import *
  from .progress import *
  from .fp16 import *
label_desc: Use image node_id 2 for calling the ShortEpochCallback obj's underlying member method code with example usage: obj.after_batch() without return types