code: def test_numpy_amax(
      dtype_x_axis,
      frontend,
      test_flags,
      fn_tree,
      backend_fw,
      on_device,
      where,
      initial,
      keepdims,
  ):
      if initial is None and np.all(where) is not True:
          assume(initial is +inf)
      input_dtypes, x, axis = dtype_x_axis
      (
          where,
          input_dtypes,
          test_flags,
      ) = np_frontend_helpers.handle_where_and_array_bools(
          where=where,
          input_dtype=input_dtypes,
          test_flags=test_flags,
      )
      np_frontend_helpers.test_frontend_function(
          input_dtypes=input_dtypes,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          a=x[0],
          axis=axis,
          keepdims=keepdims,
          initial=initial,
          where=where,
      )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_mathematical_functions/test_extrema_finding.py
imports: import numpy
  from hypothesis import assume, strategies
  import ivy_tests.test_ivy.helpers
  import ivy_tests.test_ivy.test_frontends.test_numpy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
  from ivy import inf
label_desc: Use image node_id 1 for calling a global function with example usage: test_numpy_amax(dtype_x_axis, frontend, test_flags, fn_tree, backend_fw, on_device, where, initial, keepdims) without return types