code: def argmax(
      x: np.ndarray,
      /,
      *,
      axis: Optional[int] = None,
      keepdims: bool = False,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      select_last_index: bool = False,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      if select_last_index:
          x = np.flip(x, axis=axis)
          ret = np.argmax(x, axis=axis, keepdims=keepdims)
          if axis is not None:
              ret = np.array(x.shape[axis] - ret - 1)
          else:
              ret = np.array(x.size - ret - 1)
      else:
          ret = np.array(np.argmax(x, axis=axis, keepdims=keepdims))
      if dtype:
          dtype = ivy.as_native_dtype(dtype)
          ret = ret.astype(dtype)
      return ret
  
file_path: ivy/ivy/functional/backends/numpy/searching.py
imports: from numbers import Number
  from typing import Optional, Tuple, Union
  import numpy
  import ivy
label_desc: Use image node_id 1 for calling a global function with example usage: argmax() and returns: ret