class_docstr: Base callback class.
  
  .. note::
  
      All callbacks should override this class.
class_docstr_tok: ["Base","callback","class",".","..","note",":",":","All","callbacks","should","override","this","class","."]
docstr: Get a dict containing the callback state.
  
  Returns:
      dict: A dict containing parameters and persistent buffers.
docstr_tok: ["Get","a","dict","containing","the","callback","state",".","Returns",":","dict",":","A","dict","containing","parameters","and","persistent","buffers","."]
code: def state_dict(self):
      """Get a dict containing the callback state.
  
      Returns:
          dict: A dict containing parameters and persistent buffers.
      """
      return {}
  
imports: import functools
  import traceback
  import warnings
  import torch
  from packaging import version
  import torchbearer
  import sys
label_desc: Use image node_id 1 for calling the Callback obj's underlying member method code with example usage: obj.state_dict() and returns: dict