code: def any(
      x: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      keepdims: bool = False,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Test whether any input array element evaluates to ``True`` along a
      specified axis.
  
      .. note::
         Positive infinity, negative infinity, and NaN must evaluate to ``True``.
  
      .. note::
         If ``x`` is an empty array or the size of the axis (dimension) along which to
         evaluate elements is zero, the test result must be ``False``.
  
      Parameters
      ----------
      x
          input array.
      axis
          axis or axes along which to perform a logical OR reduction. By default, a
          logical OR reduction must be performed over the entire array. If a tuple of
          integers, logical OR reductions must be performed over multiple axes. A valid
          ``axis`` must be an integer on the interval ``[-N, N)``, where ``N`` is the rank
          (number of dimensions) of ``x``. If an ``axis`` is specified as a negative
          integer, the function must determine the axis along which to perform a reduction
          by counting backward from the last dimension (where ``-1`` refers to the last
          dimension). If provided an invalid ``axis``, the function must raise an
          exception. Default: ``None``.
      keepdims
          If ``True``, the reduced axes (dimensions) must be included in the result as
          singleton dimensions, and, accordingly, the result must be compatible with the
          input array (see :ref:`broadcasting`). Otherwise, if ``False``, the reduced axes
          (dimensions) must not be included in the result. Default: ``False``.
      out
          optional output array, for writing the result to. It must have a shape that the
          inputs broadcast to.
  
      Returns
      -------
      ret
          if a logical OR reduction was performed over the entire array, the returned
          array must be a zero-dimensional array containing the test result; otherwise,
          the returned array must be a non-zero-dimensional array containing the test
          results. The returned array must have a data type of ``bool``.
  
  
      This method conforms to the `Array API Standard
      <https://data-apis.org/array-api/latest/>`_. This docstring is an extension of the
      `docstring <https://data-apis.org/array-api/latest/
      API_specification/generated/array_api.any.html>`_
      in the standard.
  
      Both the description and the type hints above assumes an array input for simplicit
      y,but this function is *nestable*, and therefore also accepts :class:`ivy.Container`
      instances in place of any of the arguments.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([2, 3, 4])
      >>> y = ivy.any(x)
      >>> print(y)
      ivy.array(True)
  
      >>> x = ivy.array([[0],[1]])
      >>> y = ivy.zeros((1,1), dtype='bool')
      >>> a = ivy.any(x, axis=0, out = y, keepdims=True)
      >>> print(a)
      ivy.array([[True]])
  
      >>> x=ivy.array(False)
      >>> y=ivy.any(ivy.array([[0, 3],[1, 4]]), axis=(0,1), out=x, keepdims=False)
      >>> print(y)
      ivy.array(True)
  
      >>> x=ivy.array(False)
      >>> y=ivy.any(ivy.array([[[0],[1]],[[1],[1]]]),axis=(0,1,2), out=x, keepdims=False)
      >>> print(y)
      ivy.array(True)
  
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([0, 1, 2]), b=ivy.array([3, 4, 5]))
      >>> y = ivy.any(x)
      >>> print(y)
      {
          a: ivy.array(True),
          b: ivy.array(True)
      }
      """
      return ivy.current_backend(x).any(
          x, axis=axis, keepdims=keepdims, out=out
      )
  
file_path: ivy/ivy/functional/ivy/utility.py
imports: from typing import Union, Optional, Sequence
  import ivy
  from ivy.func_wrapper import handle_array_function, to_native_arrays_and_back, handle_out_argument, handle_nestable, handle_array_like_without_promotion, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 2 for calling a global function with example usage: any() and returns: ivy