code: def test_torch_cumsum(
      *,
      dtype_x_axis,
      dtype,
      on_device,
      fn_tree,
      frontend,
      test_flags,
      backend_fw,
  ):
      input_dtype, x, axis = dtype_x_axis
      # ToDo: set as_variable_flags as the parameter generated by test_torch_cumsum once
      # this issue is marked as completed https://github.com/pytorch/pytorch/issues/75733
      if ivy.current_backend_str() == "torch":
          test_flags.as_variable = [False]
      helpers.test_frontend_function(
          input_dtypes=input_dtype,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          input=x[0],
          dim=axis,
          dtype=dtype[0],
      )
  
imports: import math
  import numpy
  from hypothesis import assume, strategies
  import hypothesis.extra.numpy
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
  from ivy_tests.test_ivy.test_functional.test_core.test_linalg import _get_dtype_value1_value2_axis_for_tensordot
label_desc: Use image node_id 21 for calling a global function with example usage: test_torch_cumsum() without return types