Equivalent to NumPy's [argmax()](https://numpy.org/devdocs/reference/generated/numpy.argmax.html) function.