class_docstr: Test cases for ftrl ops.
docstr: Test multiply_linear_by_lr = true for the linear variable.
docstr_tok: ["Test","multiply_linear_by_lr","=","true","for","the","linear","variable","."]
code: def testMultiplyLinearByLR(self):
      """Test multiply_linear_by_lr = true for the linear variable."""
      _, _, linear = self._eval(
          var=np.zeros((1, 3, 2)),
          accum=np.zeros((1, 3, 2)),
          linear=np.ones((1, 3, 2)),
          grad=np.ones((1, 3, 2)),
          lr=6,
          l1=1,
          l2=-1.25,
          lr_power=0,
          multiply_linear_by_lr=True,
      )
      self.assertAllClose(7 * 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 12 for calling the ResourceApplyFtrlTest obj's underlying member method code with example usage: obj.testMultiplyLinearByLR() without return types