code: def test_add_param_group_error(self):
      m = TestDummyModel()
      named_optim = _NamedOptimizer(
          m.named_parameters(),
          torch.optim.SGD,
          [
              {"params": m.net1.parameters()},
              {"params": m.net3.parameters(), "lr": 1e-3},
          ],
          lr=1e-2,
          momentum=0.9,
      )
  
      err_msg = "some parameters are not in the module"
      with self.assertRaisesRegex(ValueError, err_msg):
          named_optim.add_param_group(
              {"params": [torch.ones(8, 1)], "lr": 1e-5}
          )
  
imports: import unittest
  import torch
  import torch.nn
  from torch.distributed.optim import _NamedOptimizer
label_desc: Use image node_id 10 for calling the NamedOptimizerTest obj's underlying member method code with example usage: obj.test_add_param_group_error() without return types