code: def testVariableHyperParams(self):
      parameters = [tf.Variable([1.0, 2.0]), tf.Variable([3.0, 4.0])]
      updates = [tf.constant([5.0, 5.0]), tf.constant([3.0, 3.0])]
      learning_rate = tf.Variable(0.001)
      optimizer = self.make_optimizer(learning_rate=learning_rate)
      optimizer.apply(updates, parameters)
      self.assertAllClose(
          [[0.999, 1.999], [2.999, 3.999]],
          [x.numpy() for x in parameters],
      )
      learning_rate.assign(0.1)
      self.assertAlmostEqual(0.1, optimizer.learning_rate.numpy())
      optimizer.apply(updates, parameters)
      self.assertAllClose(
          [[0.899, 1.899], [2.899, 3.899]],
          [x.numpy() for x in parameters],
          rtol=1e-4,
      )
  
file_path: sonnet/sonnet/src/optimizers/adam_test.py
imports: from sonnet.src import test_utils
  from sonnet.src.optimizers import adam
  from sonnet.src.optimizers import optimizer_tests
  import tensorflow
label_desc: Use image node_id 4 for calling the AdamTest obj's underlying member method code with example usage: obj.testVariableHyperParams() without return types