code: def test_weight_decay(self):
      grads, var1, var2, var3 = (
          ops.zeros(()),
          backend.Variable(2.0),
          backend.Variable(2.0, name="exclude"),
          backend.Variable(2.0),
      )
      optimizer_1 = RMSprop(learning_rate=1.0, weight_decay=0.004)
      optimizer_1.apply_gradients(zip([grads], [var1]))
  
      optimizer_2 = RMSprop(learning_rate=1.0, weight_decay=0.004)
      optimizer_2.exclude_from_weight_decay(var_names=["exclude"])
      optimizer_2.apply_gradients(zip([grads, grads], [var1, var2]))
  
      optimizer_3 = RMSprop(learning_rate=1.0, weight_decay=0.004)
      optimizer_3.exclude_from_weight_decay(var_list=[var3])
      optimizer_3.apply_gradients(zip([grads, grads], [var1, var3]))
  
      self.assertAlmostEqual(var1.numpy(), 1.9760959, decimal=6)
      self.assertAlmostEqual(var2.numpy(), 2.0, decimal=6)
      self.assertAlmostEqual(var3.numpy(), 2.0, decimal=6)
  
file_path: keras/keras/optimizers/rmsprop_test.py
imports: import numpy
  from keras import backend
  from keras import ops
  from keras import testing
  from keras.optimizers.rmsprop import RMSprop
label_desc: Use image node_id 3 for calling the RMSpropTest obj's underlying member method code with example usage: obj.test_weight_decay() without return types