code: def testDtypes(self):
      with self.cached_session() as sess:
          dtypes = [
              dtypes_lib.float16,
              dtypes_lib.float32,
              dtypes_lib.float64,
          ]
  
          for i in range(len(dtypes)):
              dtype = dtypes[i]
              q = data_flow_ops.ConditionalAccumulator(
                  dtype, shape=tensor_shape.TensorShape([1])
              )
  
              elems = np.arange(10).astype(dtype.as_numpy_dtype)
              for e in elems:
                  q.apply_grad((e,)).run()
  
              result = self.evaluate(q.take_grad(1))
  
              self.assertEqual(sum(elems) / len(elems), result)
  
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 5 for calling the ConditionalAccumulatorTest obj's underlying member method code with example usage: obj.testDtypes() without return types