code: def isinf(data):
      """Performs an element-wise check to determine if the NDArray contains an infinite element
      or not.
  
  
      Parameters
      ----------
      input : NDArray
          An N-D NDArray.
  
      Returns
      -------
      output: NDArray
          The output NDarray, with same shape as input, where 1 indicates the array element is
          equal to positive or negative infinity and 0 otherwise.
  
      Examples
      --------
      >>> data = mx.nd.array([np.inf, -np.inf, np.NINF, -1])
      >>> output = mx.nd.contrib.isinf(data)
      >>> output
      [1. 1. 1. 0.]
      <NDArray 4 @cpu(0)>
      """
      return data.abs() == np.inf
  
imports: import math
  import numpy
  import mxnet
  from ..device import current_device
  from ..random import uniform
  from ..base import _as_list
  from .None import ndarray
label_desc: Use image node_id 8 for calling a global function with example usage: isinf(data) and returns: unknown