code: def testSvdvals(self, shape, dtype):
      rng = jtu.rand_default(self.rng())
      args_maker = lambda: [rng(shape, dtype)]
      jnp_fun = jax.numpy.linalg.svdvals
      if jtu.numpy_version() < (2, 0, 0):
          np_fun = lambda x: np.linalg.svd(x, compute_uv=False)
      else:
          np_fun = np.linalg.svdvals
      self._CheckAgainstNumpy(
          np_fun, jnp_fun, args_maker, rtol=_SVD_RTOL, atol=1e-5
      )
      self._CompileAndCheck(jnp_fun, args_maker, rtol=_SVD_RTOL)
  
file_path: jax/tests/svd_test.py
imports: import functools
  import jax
  import jax.numpy
  import numpy
  import scipy.linalg
  from jax._src import config
  from jax._src import test_util
  from jax._src.lax import svd
  from absl.testing import absltest
label_desc: Use image node_id 1 for calling the SvdTest obj's underlying member method code with example usage: obj.testSvdvals(shape, dtype) without return types