code: def test_large_sum_reduction(seed, inshape, axis, ctx, func_name):
      if not func_name.endswith("Cuda"):
          # This configuration is only to test the CUDA implementation branch
          # where reduction_size / outer_size >= 2048, so we skip this test for
          # CPU and CuDNN and also do not need to run for both keepdims.
          pytest.skip(
              "skip CUDA specific implementation test for other target"
          )
  
      rng = np.random.RandomState(seed)
      inputs = [rng.randn(*inshape).astype(np.float32)]
      function_tester(
          rng,
          F.sum,
          np.sum,
          inputs,
          ctx=ctx,
          func_name=func_name,
          func_args=[axis],
          atol_b=1e-2,
          disable_half_test=False,
      )
  
file_path: nnabla/python/test/function/test_reduction.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nnabla.testing import assert_allclose
  from nbla_test_utils import function_tester, list_context, list_ctx_and_func_name
label_desc: Use image node_id 2 for calling a global function with example usage: test_large_sum_reduction(seed, inshape, axis, ctx, func_name) without return types