code: def _check_result(self, result_cpu, result_gpu):
      if isinstance(result_cpu, tuple):
          for b_cpu, b_gpu in zip(result_cpu, result_gpu):
              assert b_cpu.dtype == b_gpu.dtype
              cupy.testing.assert_allclose(b_cpu, b_gpu, atol=1e-4)
      else:
          assert result_cpu.dtype == result_gpu.dtype
          cupy.testing.assert_allclose(
              result_cpu, result_gpu, atol=1e-4
          )
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupyx import cusolver
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupy.linalg import _util
  from cupy import testing
  from cupy.testing import _condition
  import cupyx
label_desc: Use image node_id 2 for calling the TestQRDecomposition obj's underlying member method code with example usage: obj._check_result(result_cpu, result_gpu) without return types