class_docstr: Base class for callbacks that can be registered with type :class:`BaseTrainer`
  
  Attr:
      config(omegaconf.DictConfig): Config for the callback
      trainer(Type[BaseTrainer]): Trainer object
class_docstr_tok: ["Base","class","for","callbacks","that","can","be","registered","with","type",":","class",":","`","BaseTrainer","`","Attr",":","config","(","omegaconf.DictConfig",")",":","Config","for","the","callback","trainer","(","Type","[","BaseTrainer","]",")",":","Trainer","object"]
code: def __init__(
      self, config: DictConfig, trainer: Type[BaseTrainer]
  ) -> None:
      self.config = config
      self.trainer = trainer
      self.training_config = self.config.training
  
imports: from typing import Type
  from mmf.trainers.base_trainer import BaseTrainer
  from omegaconf import DictConfig
label_desc: Use image node_id 1 to create a new Callback object  with example: obj = Callback(config, trainer)