code: def testGradient(self):
      for reverse in (True, False):
          for exclusive in (True, False):
              x = np.arange(10) / 10.0 - 0.5
  
              self._testGradient(
                  x, use_gpu=False, reverse=reverse, exclusive=exclusive
              )
              self._testGradient(
                  x, use_gpu=True, reverse=reverse, exclusive=exclusive
              )
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/math_ops/cumulative_logsumexp_test.py
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import map_fn
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the CumulativeLogsumexpTest obj's underlying member method code with example usage: obj.testGradient() without return types