code: def test_cumsum_forward_backward(
      seed, axis, exclusive, reverse, ctx, func_name
  ):
      from nbla_test_utils import function_tester
  
      rng = np.random.RandomState(seed)
      inputs = [(rng.randn(5, 3, 4)).astype(np.float32)]
      function_tester(
          rng,
          F.cumsum,
          ref_cumsum,
          inputs,
          func_args=[axis, exclusive, reverse],
          ctx=ctx,
          func_name=func_name,
          atol_b=3e-3,
          disable_half_test=True,
      )
  
file_path: nnabla/python/test/function/test_cumsum.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nbla_test_utils import list_context
  from refs import cumsum
label_desc: Use image node_id 1 for calling a global function with example usage: test_cumsum_forward_backward(seed, axis, exclusive, reverse, ctx, func_name) without return types