code: def test_sum_invalid(is_module, xp, shape, axis, keepdims, dtype):
      a = array_utils.create_dummy_ndarray(xp, shape, dtype)
      if is_module:
          xp.sum(a, axis=axis, keepdims=keepdims)
      else:
          a.sum(axis=axis, keepdims=keepdims)
  
imports: import chainer
  import numpy
  import pytest
  import chainerx
  import chainerx.testing
  from chainerx_tests import array_utils
  from chainerx_tests import math_utils
  from chainerx_tests import op_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_sum_invalid(is_module, xp, shape, axis, keepdims, dtype) without return types