code: def test_eigh(
      *, dtype_x, UPLO, test_flags, backend_fw, fn_name, on_device
  ):
      input_dtype, x = dtype_x
      results = helpers.test_function(
          input_dtypes=input_dtype,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          x=x,
          UPLO=UPLO,
          test_values=False,
          return_flat_np_arrays=True,
      )
      if results is None:
          return
      ret_np_flat, ret_from_np_flat = results
      reconstructed_np = None
      for i in range(len(ret_np_flat) // 2):
          eigenvalue = ret_np_flat[i]
          eigenvector = ret_np_flat[len(ret_np_flat) // 2 + i]
          if reconstructed_np is not None:
              reconstructed_np += eigenvalue * np.matmul(
                  eigenvector.reshape(1, -1), eigenvector.reshape(-1, 1)
              )
          else:
              reconstructed_np = eigenvalue * np.matmul(
                  eigenvector.reshape(1, -1), eigenvector.reshape(-1, 1)
              )
  
      reconstructed_from_np = None
      for i in range(len(ret_from_np_flat) // 2):
          eigenvalue = ret_from_np_flat[i]
          eigenvector = ret_from_np_flat[len(ret_np_flat) // 2 + i]
          if reconstructed_from_np is not None:
              reconstructed_from_np += eigenvalue * np.matmul(
                  eigenvector.reshape(1, -1), eigenvector.reshape(-1, 1)
              )
          else:
              reconstructed_from_np = eigenvalue * np.matmul(
                  eigenvector.reshape(1, -1), eigenvector.reshape(-1, 1)
              )
  
      # value test
      helpers.assert_all_close(
          reconstructed_np,
          reconstructed_from_np,
          rtol=1e-1,
          atol=1e-2,
          backend=backend_fw,
      )
  
imports: import sys
  import numpy
  from hypothesis import assume, strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
  from ivy_tests.test_ivy.helpers.hypothesis_helpers.general_helpers import matrix_is_stable
label_desc: Use image node_id 15 for calling a global function with example usage: test_eigh() without return types