code: def isposinf(x, out=None):
      """Test element-wise for positive infinity, return result as bool array.
  
      Parameters
      ----------
      x : cupy.ndarray
          Input array.
      out : cupy.ndarray
          A location into which the result is stored. If provided,
          it should have a shape that input broadcasts to.
          By default, None, a freshly- allocated boolean array,
          is returned.
  
      Returns
      -------
      y : cupy.ndarray
          Boolean array of same shape as ``x``.
  
      Examples
      --------
      >>> cupy.isposinf(0)
      array(False)
      >>> cupy.isposinf(cupy.inf)
      array(True)
      >>> cupy.isposinf(cupy.array([-cupy.inf, -4, cupy.nan, 0, 4, cupy.inf]))
      array([False, False, False, False, False,  True])
  
      See Also
      --------
      numpy.isposinf
  
      """
  
      is_inf = isinf(x)
      try:
          signbit = ~cupy.signbit(x)
      except TypeError as e:
          dtype = x.dtype
          raise TypeError(
              f"This operation is not supported for {dtype} values "
              "because it would be ambiguous."
          ) from e
  
      # TODO(khushi-411): Use `out` instead of `out=out` (see #6393)
      return cupy.logical_and(is_inf, signbit, out=out)
  
imports: from cupy import _core
  import cupy
label_desc: Use image node_id 3 for calling a global function with example usage: isposinf(x, out) and returns: cupy