code: def test_on_x_methods_have_kwargs(self, callbacks, on_x_methods):
      import inspect
  
      for callback, method_name in itertools.product(
          callbacks, on_x_methods
      ):
          method = getattr(callback, method_name)
          assert "kwargs" in inspect.signature(method).parameters
  
file_path: skorch/skorch/tests/callbacks/test_all.py
imports: import itertools
  import pytest
label_desc: Use image node_id 4 for calling the TestAllCallbacks obj's underlying member method code with example usage: obj.test_on_x_methods_have_kwargs(callbacks, on_x_methods) without return types