code: def test_logsumexp_invalid(device, a_shape, axis, keepdims, dtype):
      a = array_utils.create_dummy_ndarray(chainerx, a_shape, dtype)
      with pytest.raises(chainerx.DimensionError):
          chainerx.logsumexp(a, 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 2 for calling a global function with example usage: test_logsumexp_invalid(device, a_shape, axis, keepdims, dtype) without return types