code: def amax(
      x: np.ndarray,
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      keepdims: bool = False,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      axis = tuple(axis) if isinstance(axis, list) else axis
      ret = np.amax(a=x, axis=axis, out=out, keepdims=keepdims)
      return np.asarray(ret) if np.isscalar(ret) else ret
  
imports: from typing import Optional, Union, Tuple, List, Sequence
  import numpy
  import numpy.typing
  import ivy
  from ivy import promote_types_of_inputs
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 1 for calling a global function with example usage: amax() and returns: unknown