code: def test_jax_eigvals(
      *,
      dtype_and_x,
      on_device,
      fn_tree,
      frontend,
      test_flags,
      backend_fw,
  ):
      dtypes, x = dtype_and_x
      x = np.array(x[0], dtype=dtypes[0])
      # make symmetric positive-definite beforehand
      x = np.matmul(x.T, x) + np.identity(x.shape[0]) * 1e-3
  
      ret, frontend_ret = helpers.test_frontend_function(
          input_dtypes=dtypes,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          test_values=False,
          a=x,
      )
  
      with BackendHandler.update_backend(backend_fw) as ivy_backend:
          # Calculate the magnitude of the complex numbers then sort them for testing
          ret = np.sort(np.abs(ivy_backend.to_numpy(ret))).astype(
              np.float64
          )
          frontend_ret = np.sort(np.abs(frontend_ret)).astype(
              np.float64
          )
  
          assert_all_close(
              ret_np=ret,
              ret_from_gt_np=frontend_ret,
              backend=backend_fw,
              ground_truth_backend=frontend,
              atol=1e-2,
              rtol=1e-2,
          )
  
imports: import sys
  import numpy
  from hypothesis import strategies, assume
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import assert_all_close, handle_frontend_test, BackendHandler
  from ivy_tests.test_ivy.test_functional.test_core.test_linalg import _get_dtype_and_matrix, _matrix_rank_helper
  from ivy_tests.test_ivy.helpers.hypothesis_helpers.general_helpers import matrix_is_stable
label_desc: Use image node_id 9 for calling a global function with example usage: test_jax_eigvals() without return types