code: def eigvalsh(input, UPLO="L", *, out=None):
      ret = ivy.eigvalsh(input, UPLO=UPLO, out=out)
      if "complex64" in ivy.as_ivy_dtype(ret.dtype):
          ret = ivy.astype(ret, ivy.float32)
      elif "complex128" in ivy.as_ivy_dtype(ret.dtype):
          ret = ivy.astype(ret, ivy.float64)
      return ret
  
imports: import math
  import ivy
  import ivy.functional.frontends.torch
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
  from collections import namedtuple
label_desc: Use image node_id 11 for calling a global function with example usage: eigvalsh(input, UPLO) and returns: ret