code: def testDense(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])]
      optimizer = self.make_optimizer(learning_rate=0.001)
      # Step 1 of Adam
      optimizer.apply(updates, parameters)
      self.assertAllClose(
          [[0.999, 1.999], [2.999, 3.999]],
          [x.numpy() for x in parameters],
      )
      # Step 2 of Adam
      optimizer.apply(updates, parameters)
      self.assertAllClose(
          [[0.998, 1.998], [2.998, 3.998]],
          [x.numpy() for x in parameters],
      )
      # Step 3 of Adam
      optimizer.apply(updates, parameters)
      self.assertAllClose(
          [[0.997, 1.997], [2.997, 3.997]],
          [x.numpy() for x in parameters],
      )
  
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 2 for calling the AdamTest obj's underlying member method code with example usage: obj.testDense() without return types