code: def nonzero(a):
      """Return the indices of the elements that are non-zero.
  
      Returns a tuple of arrays, one for each dimension of a,
      containing the indices of the non-zero elements in that dimension.
  
      Args:
          a (cupy.ndarray): array
  
      Returns:
          tuple of arrays: Indices of elements that are non-zero.
  
      .. warning::
  
          This function may synchronize the device.
  
      .. seealso:: :func:`numpy.nonzero`
  
      """
      _util.check_array(a, arg_name="a")
      return a.nonzero()
  
file_path: cupy/cupy/_sorting/search.py
imports: import cupy
  from cupy import _core
  from cupy._core import fusion
  from cupy import _util
  from cupy._core import _routines_indexing
  from cupy._core import _routines_statistics
label_desc: Use image node_id 5 for calling a global function with example usage: nonzero(a) and returns: a