code: def test_array_function2(self):
      a = numpy.random.randn(100, 100)
      a_cpu = numpy.asarray(a)
      a_gpu = cupy.asarray(a)
  
      # The numpy call for both CPU and GPU arrays is intentional to test the
      # __array_function__ protocol
      out_cpu = numpy.sum(a_cpu, axis=1)
      out_gpu = numpy.sum(a_gpu, axis=1)
  
      assert out_cpu.dtype == out_gpu.dtype
      cupy.testing.assert_allclose(out_cpu, out_gpu, atol=1e-4)
  
file_path: cupy/tests/cupy_tests/core_tests/test_array_function.py
imports: import unittest
  import numpy
  import cupy
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestArrayFunction obj's underlying member method code with example usage: obj.test_array_function2() without return types