code: def test_logit_nonfinite(self):
      logit = cupyx.scipy.special.logit
      assert float(logit(0)) == -numpy.inf
      assert float(logit(1)) == numpy.inf
      assert numpy.isnan(float(logit(1.1)))
      assert numpy.isnan(float(logit(-0.1)))
  
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  import cupyx.scipy.special
label_desc: Use image node_id 5 for calling the TestSpecial obj's underlying member method code with example usage: obj.test_logit_nonfinite() without return types