code: def test_wrong_name_raises(self, setter, net_optim_dummy):
      # should be 'param_groups' instead
      param = "optimizer__param_group__0__lr"
      value = 0.1
      with pytest.raises(AttributeError) as e:
          setter(net_optim_dummy, param, value)
  
      assert e.value.args[0] == (
          'Invalid parameter "{param}" for optimizer "optimizer"'.format(
              param=param
          )
      )
  
file_path: skorch/skorch/tests/test_setter.py
imports: from unittest.mock import Mock
  import pytest
label_desc: Use image node_id 6 for calling the TestOptimizerSetter obj's underlying member method code with example usage: obj.test_wrong_name_raises(setter, net_optim_dummy) without return types