class_docstr: `Callback` that can be used to register hooks on `modules`
code: def before_batch(self):
      if self.every is None:
          return
      if self.training and self.train_iter % self.every == 0:
          self._register()
  
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 3 for calling the HookCallback obj's underlying member method code with example usage: obj.before_batch() without return types