code: def check_int8_sum(
      self, shape, xp, axis=None, keepdims=False, trans=False
  ):
      a = testing.shaped_random(shape, xp, "b")
      if trans:
          a = a.T
  
      if xp == cupy:
          with self.stream:
              a = DummyObjectWithCudaArrayInterface(a, self.ver)
              return self.my_int8_sum(a, axis=axis, keepdims=keepdims)
      else:
          return a.sum(axis=axis, keepdims=keepdims, dtype="b")
  
imports: import unittest
  import pytest
  from cupy_backends.cuda import stream
  import cupy
  from cupy import _core
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestSimpleReductionFunction obj's underlying member method code with example usage: obj.check_int8_sum(shape, xp, axis, keepdims, trans) and returns: a, self