docstr: Return all callbacks
docstr_tok: ["Return","all","callbacks"]
code: def callbacks(self):
      """Return all callbacks"""
      import skorch.callbacks
  
      callbacks = []
      for name in dir(skorch.callbacks):
          attr = getattr(skorch.callbacks, name)
          # pylint: disable=unidiomatic-typecheck
          if not type(attr) is type:
              continue
          if issubclass(attr, skorch.callbacks.Callback):
              callbacks.append(attr)
      return callbacks
  
file_path: skorch/skorch/tests/callbacks/test_all.py
imports: import itertools
  import pytest
label_desc: Use image node_id 1 for calling the TestAllCallbacks obj's underlying member method code with example usage: obj.callbacks() and returns: callbacks