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