code: def array_equiv(a1, a2):
      """
      Returns ``True`` if all elements are equal or shape consistent,
      i.e., one input array can be broadcasted to create the same
      shape as the other.
  
      Args:
          a1 (cupy.ndarray): Input array.
          a2 (cupy.ndarray): Input array.
  
      Returns:
          cupy.ndarray: A boolean 0-dim array.
              ``True`` if equivalent, otherwise ``False``.
  
      .. seealso:: :func:`numpy.array_equiv`
  
      """
  
      try:
          cupy.broadcast(a1, a2)
      except Exception:
          return cupy.array(False)
  
      return (a1 == a2).all()
  
imports: import numpy
  import cupy
  from cupy import _core
  from cupy._logic import content
label_desc: Use image node_id 4 for calling a global function with example usage: array_equiv(a1, a2) and returns: unknown, cupy