code: def _cumsum_slow(
      rt, axis=0, exclusive=False, reverse=False, name=None
  ):
      dense = rt.to_tensor()
      result = math_ops.cumsum(
          dense,
          axis=axis,
          exclusive=exclusive,
          reverse=reverse,
          name=name,
      )
      return ragged_tensor.RaggedTensor.from_tensor(
          result, lengths=rt.nested_row_lengths()
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_math_ops
  from tensorflow.python.ops.ragged import ragged_string_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling a global function with example usage: _cumsum_slow(rt, axis, exclusive, reverse, name) and returns: ragged_tensor