code: def all(a, axis=None, out=None, keepdims=False):
      """Tests whether all array elements along a given axis evaluate to True.
  
      Parameters
      ----------
      a : cupy.ndarray
          Input array.
      axis : int or tuple of ints
          Along which axis to compute all.
          The flattened array is used by default.
      out : cupy.ndarray
          Output array.
      keepdims : bool
          If ``True``, the axis is remained as an axis of size one.
  
      Returns
      -------
      y : cupy.ndarray
          An array reduced of the input array along the axis.
  
      See Also
      --------
      numpy.all
  
      """
      if _fusion_thread_local.is_fusing():
          if keepdims:
              raise NotImplementedError(
                  "cupy.all does not support `keepdims` in fusion yet."
              )
          return _fusion_thread_local.call_reduction(
              _logic.all, a, axis=axis, out=out
          )
  
      _util.check_array(a, arg_name="a")
  
      return a.all(axis=axis, out=out, keepdims=keepdims)
  
file_path: cupy/cupy/_logic/truth.py
imports: import warnings
  import cupy
  from cupy._core import _routines_logic
  from cupy._core import _fusion_thread_local
  from cupy._sorting import search
  from cupy import _util
label_desc: Use image node_id 1 for calling a global function with example usage: all(a, axis, out, keepdims) and returns: a, _fusion_thread_local