code: def test_set_weighs_raises_error(self):
      layer = tl.Layer()
      layer.weights = 1.0  # can assign weights
      with self.assertRaisesRegex(ValueError, "weighs"):
          layer.weighs = 1.0
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from trax import fastmath
  from trax import shapes
  from trax.fastmath import numpy
  import trax.layers
label_desc: Use image node_id 2 for calling the BaseLayerTest obj's underlying member method code with example usage: obj.test_set_weighs_raises_error() without return types