code: def testAccumulatorApplyGradFloat32(self):
      with self.cached_session():
          q = data_flow_ops.SparseConditionalAccumulator(
              dtypes_lib.float32,
              name="Q",
              shape=tensor_shape.TensorShape([3, 3]),
          )
          accum_op = q.apply_indexed_slices_grad(
              indexed_slices.IndexedSlices(
                  indices=[0, 2],
                  values=np.array([[0, 0, 1], [3, 0, 4]]).astype(
                      np.float32
                  ),
              )
          )
          accum_op.run()
          self.assertEqual(q.num_accumulated().eval(), 1)
  
imports: import time
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the IndexedSlicesConditionalAccumulatorTest obj's underlying member method code with example usage: obj.testAccumulatorApplyGradFloat32() without return types