code: def test_infinite_arguments(self, a, x, desired):
      result = sc.gammainc(a, x)
      if cp.isnan(desired):
          assert cp.isnan(result)
      else:
          assert result == desired
  
imports: import cupy
  import pytest
  import cupyx.scipy.special
  from cupy.testing import assert_allclose, assert_array_equal
label_desc: Use image node_id 3 for calling the TestGammainc obj's underlying member method code with example usage: obj.test_infinite_arguments(a, x, desired) without return types