code: def testAccumulatorApplyGradWithWrongShape(self):
      q = data_flow_ops.ConditionalAccumulator(
          dtypes_lib.float32, name="Q", shape=(3, 2)
      )
  
      with self.assertRaises(ValueError):
          q.apply_grad([[1.0, 2.0], [3.0, 4.0]])
  
      with self.assertRaises(ValueError):
          q.apply_grad([[1.0], [2.0], [3.0]])
  
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 ops
  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.ops import math_ops
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the ConditionalAccumulatorTest obj's underlying member method code with example usage: obj.testAccumulatorApplyGradWithWrongShape() without return types