code: def test_keep_dimensions(self, xp, scp):
      a = xp.array([[100, 1000], [1e10, 1e-10]])
      return scp.special.logsumexp(a, axis=-1, keepdims=True)
  
file_path: cupy/tests/cupyx_tests/scipy_tests/special_tests/test_logsumexp.py
imports: import pytest
  import numpy
  import cupy
  from cupy import testing
  import cupyx.scipy.special
label_desc: Use image node_id 4 for calling the TestLogsumexp obj's underlying member method code with example usage: obj.test_keep_dimensions(xp, scp) and returns: scp