code: def on_x_methods(self):
      return [
          "on_train_begin",
          "on_train_end",
          "on_epoch_begin",
          "on_epoch_end",
          "on_batch_begin",
          "on_batch_end",
          "on_grad_computed",
      ]
  
file_path: skorch/skorch/tests/callbacks/test_all.py
imports: import itertools
  import pytest
label_desc: Use image node_id 3 for calling the TestAllCallbacks obj's underlying member method code with example usage: obj.on_x_methods() and returns: list