code: def isinf(x, /):
      """Tests each element x_i of the input array x to determine if equal to positive or negative infinity."""
      (x,) = _promote_dtypes("isinf", x)
      return jax.numpy.isinf(x)
  
imports: import jax
  from jax.experimental.array_api._data_type_functions import result_type, isdtype
  import numpy
label_desc: Use image node_id 31 for calling a global function with example usage: isinf() and returns: jax