code: def testMixedPrecision(self):
      with self.session(), self.test_scope():
          y = math_ops.cumsum(
              constant_op.constant(
                  [1.0, 2.0, 3.0, 4.0], dtypes.bfloat16
              ),
              -1,
              exclusive=True,
          ).eval()
      self.assertAllEqual(y, [0.0, 1.0, 3.0, 6.0])
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  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 test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the CumsumTest obj's underlying member method code with example usage: obj.testMixedPrecision() without return types