code: def test_numpy_eigvals(
      dtype_and_x,
      on_device,
      fn_tree,
      frontend,
      test_flags,
      backend_fw,
  ):
      dtype, x = dtype_and_x
      ret, frontend_ret = helpers.test_frontend_function(
          input_dtypes=dtype,
          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:
          ret = np.sort(
              np.array(
                  [
                      ivy_backend.to_numpy(x).astype(np.float128)
                      for x in ret
                  ]
              )
          )
          frontend_ret = np.sort(
              np.array([x.astype(np.float128) for x in frontend_ret])
          )
          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,
          )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_linalg/test_matrix_eigenvalues.py
imports: import sys
  from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test, assert_all_close, BackendHandler
  from ivy_tests.test_ivy.test_functional.test_core.test_linalg import _get_dtype_and_matrix
label_desc: Use image node_id 3 for calling a global function with example usage: test_numpy_eigvals(dtype_and_x, on_device, fn_tree, frontend, test_flags, backend_fw) without return types