code: def test_xlogy_nonfinite(self, dtype, function):
      func = getattr(cupyx.scipy.special, function)
      y = cupy.ones((5,), dtype=dtype)
      assert cupy.all(cupy.isnan(func(cupy.nan, y)))
      assert cupy.all(cupy.isnan(func(y, cupy.nan)))
  
imports: import math
  import cupy
  import numpy
  import pytest
  import cupyx.scipy.special
  from cupy import testing
  from cupy.testing import assert_array_equal, assert_array_almost_equal
  from cupy.testing import numpy_cupy_allclose
label_desc: Use image node_id 8 for calling the TestBasic obj's underlying member method code with example usage: obj.test_xlogy_nonfinite(dtype, function) without return types