code: def test_no_scale_and_init_provided(self):
      with self.assertRaisesRegex(
          ValueError, "Cannot set `scale_init` if `create_scale=False`."
      ):
          layer_norm.LayerNorm(
              3,
              create_scale=False,
              create_offset=True,
              scale_init=np.ones,
          )
  
imports: import functools
  import itertools
  from absl.testing import absltest
  from absl.testing import parameterized
  from haiku._src import initializers
  from haiku._src import layer_norm
  from haiku._src import test_utils
  from haiku._src import transform
  import jax
  import jax.numpy
  import numpy
label_desc: Use image node_id 7 for calling the LayerNormTest obj's underlying member method code with example usage: obj.test_no_scale_and_init_provided() without return types