code: def eigvals(
      x: Union[ivy.Array, ivy.NativeArray],
      /,
  ) -> ivy.Array:
      """Compute eigenvalues of x. Returns a set of eigenvalues.
  
      Parameters
      ----------
      x
          An array of shape (..., N, N).
  
      Returns
      -------
      w
          Not necessarily ordered array(..., N) of eigenvalues in complex type.
  
      Examples
      --------
      With :class:`ivy.Array` inputs:
      >>> x = ivy.array([[1,2], [3,4]])
      >>> w = ivy.eigvals(x)
      >>> w
      ivy.array([-0.37228132+0.j,  5.37228132+0.j])
  
      >>> x = ivy.array([[[1,2], [3,4]], [[5,6], [5,6]]])
      >>> w = ivy.eigvals(x)
      >>> w
      ivy.array(
          [
              [-0.37228132+0.j,  5.37228132+0.j],
              [ 0.        +0.j, 11.        +0.j]
          ]
      )
      """
      return current_backend(x).eigvals(x)
  
imports: import logging
  from typing import Union, Optional, Tuple, List, Sequence, Literal
  import ivy
  from ivy.utils.backend import current_backend
  from ivy.func_wrapper import to_native_arrays_and_back, handle_out_argument, handle_nestable, handle_array_like_without_promotion, handle_array_function, handle_device, inputs_to_ivy_arrays, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 7 for calling a global function with example usage: eigvals() and returns: current_backend