code: def test_only_specific_param_group_updated(
      self, setter, net_optim_dummy, group, sub_param, value
  ):
      pgroups = net_optim_dummy.optimizer_.param_groups
      param = "optimizer__param_groups__{}__{}".format(group, sub_param)
  
      updated_group_pre = [
          g for i, g in enumerate(pgroups) if i == group
      ]
      static_groups_pre = [
          g for i, g, in enumerate(pgroups) if i != group
      ]
      assert len(updated_group_pre) == 1
  
      setter(net_optim_dummy, param, value)
  
      updated_group_new = [
          g for i, g in enumerate(pgroups) if i == group
      ]
      static_groups_new = [
          g for i, g, in enumerate(pgroups) if i != group
      ]
  
      assert updated_group_new[0][sub_param] == value
      assert all(
          old[sub_param] == new[sub_param]
          for old, new in zip(static_groups_pre, static_groups_new)
      )
  
file_path: skorch/skorch/tests/test_setter.py
imports: from unittest.mock import Mock
  import pytest
label_desc: Use image node_id 7 for calling the TestOptimizerSetter obj's underlying member method code with example usage: obj.test_only_specific_param_group_updated(setter, net_optim_dummy, group, sub_param, value) without return types