class_docstr: Test cases for ftrl ops.
docstr: Test that accum is updated with grad^2.
docstr_tok: ["Test","that","accum","is","updated","with","grad^2","."]
code: def testAccum(self):
      """Test that accum is updated with grad^2."""
      accum = np.array([[[1, 3], [2, 5], [6, 8]]])
      grad = np.array([[[1, 3], [2, 5], [6, 8]]])
      _, new_accum, _ = self._eval(
          var=np.zeros((1, 3, 2)),
          accum=accum,
          linear=np.zeros((1, 3, 2)),
          grad=grad,
          lr=7,
          l1=3,
          l2=7,
          lr_power=2,
      )
      self.assertAllClose(accum + grad * grad, new_accum)
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_training_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the ResourceApplyFtrlTest obj's underlying member method code with example usage: obj.testAccum() without return types