code: def all(
      x: np.ndarray,
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      keepdims: bool = False,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      try:
          return np.asarray(
              np.all(x, axis=axis, keepdims=keepdims, out=out)
          )
      except np.AxisError as error:
          raise ivy.utils.exceptions.IvyIndexError(error) from error
  
imports: import numpy
  from typing import Union, Optional, Sequence
  import ivy
label_desc: Use image node_id 1 for calling a global function with example usage: all() and returns: np