code: def test_invalid_shaped_weight(self):
      with pytest.raises(ValueError):
          L.Linear(10, 0).add_hook(SpectralNormalization())
  
imports: import copy
  import os
  import unittest
  import numpy
  import pytest
  import chainer
  from chainer.backends import _cpu
  from chainer.link_hooks.spectral_normalization import SpectralNormalization
  import chainer.links
  from chainer import serializers
  from chainer import testing
  from chainer.testing import attr
  from chainer.testing.backend import BackendConfig
  from chainer import utils
label_desc: Use image node_id 4 for calling the TestExceptions obj's underlying member method code with example usage: obj.test_invalid_shaped_weight() without return types