code: def test_matrix_no_stats(self):
      sn = spectral_norm.SpectralNorm()
      # We can easily calculate the first singular value for this matrix.
      input_ = 4.0 * jnp.eye(8, 8)
      sn(input_, update_stats=False)
      np.testing.assert_allclose(sn.sigma, 1.0)
  
file_path: dm-haiku/haiku/_src/spectral_norm_test.py
imports: from absl.testing import absltest
  from haiku._src import basic
  from haiku._src import spectral_norm
  from haiku._src import test_utils
  from haiku._src import transform
  import jax.numpy
  import jax.random
  import numpy
label_desc: Use image node_id 6 for calling the SpectralNormTest obj's underlying member method code with example usage: obj.test_matrix_no_stats() without return types