class_docstr: Test cases for ftrl ops.
docstr: Test that 2 * l2_shrinkage * var is *not* added to the gradient.
docstr_tok: ["Test","that","2","*","l2_shrinkage","*","var","is","*","not","*","added","to","the","gradient","."]
code: def testL2Shrinkage(self):
      """Test that 2 * l2_shrinkage * var is *not* added to the gradient."""
      _, accum, _ = self._eval(
          var=np.ones((1, 3, 2)),
          accum=np.zeros((1, 3, 2)),
          linear=np.zeros((1, 3, 2)),
          grad=np.zeros((1, 3, 2)),
          lr=7,
          l1=3,
          l2=7,
          lr_power=2,
          l2_shrinkage=0.5,
      )
      self.assertAllClose(np.zeros((1, 3, 2)), 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 10 for calling the ResourceApplyFtrlTest obj's underlying member method code with example usage: obj.testL2Shrinkage() without return types