code: def test_large_dims_keep_kernels(self):
      # This test creates a CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES
      # if the output array dims are not reduced
      shape = (4, 3, 2, 4, 3, 2, 2)
      axis = (1, 4, 3, 6)
      self.check_int8_sum(shape, axis=axis, keepdims=True)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  import cupy._core._accelerator
  from cupy import _core
  from cupy import testing
label_desc: Use image node_id 1 for calling the TestLargeMultiDimReduction obj's underlying member method code with example usage: obj.test_large_dims_keep_kernels() without return types