code: def _eigvals(tensor, name=None):
      del name
      tensor = ops.convert_to_tensor(tensor)
      e = np.linalg.eigvals(tensor)
      dt = tensor.dtype
      if dt == np.float32:
          out_dtype = np.complex64
      elif dt == np.float64:
          out_dtype = np.complex128
      return e.astype(out_dtype)
  
imports: import collections
  import functools
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy import ops
label_desc: Use image node_id 9 for calling a global function with example usage: _eigvals(tensor, name) and returns: e