code: def _logSumExpMap(self, x):
      return map_fn.map_fn(
          lambda i: math_ops.reduce_logsumexp(x[: i + 1]),
          math_ops.range(array_ops.shape(x)[0]),
          dtype=x.dtype,
      )
  
file_path: tensorflow/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 9 for calling the CumulativeLogsumexpTest obj's underlying member method code with example usage: obj._logSumExpMap(x) and returns: map_fn