code: def test_isposinf(self):
      a = np.array([np.inf, -np.inf, np.nan, 0.0, 3.0, -3.0])
      out = np.zeros(a.shape, bool)
      tgt = np.array([True, False, False, False, False, False])
  
      res = isposinf(a)
      assert_equal(res, tgt)
      res = isposinf(a, out)
      assert_equal(res, tgt)
      assert_equal(out, tgt)
  
      a = a.astype(np.complex128)
      with assert_raises(TypeError):
          isposinf(a)
  
file_path: numpy/numpy/lib/tests/test_ufunclike.py
imports: import numpy
  from numpy import fix, isposinf, isneginf
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_raises
label_desc: Use image node_id 1 for calling the TestUfunclike obj's underlying member method code with example usage: obj.test_isposinf() without return types