code: def test_spherical_yn_inf_and_nan(self, xp, scp, dtype, order_dtype):
      n = xp.arange(0, 100, dtype=order_dtype)
      a = xp.array([numpy.nan, numpy.inf, -numpy.inf], dtype=dtype)
      return scp.special.spherical_yn(
          n[xp.newaxis, :], a[:, xp.newaxis]
      )
  
imports: import numpy
  from cupy import testing
  import cupyx.scipy.special
label_desc: Use image node_id 1 for calling the TestSphericalBessel obj's underlying member method code with example usage: obj.test_spherical_yn_inf_and_nan(xp, scp, dtype, order_dtype) and returns: scp