code: def test_create_offset_and_offset_provided(self):
      layer = layer_norm.LayerNorm(
          [2], create_offset=True, create_scale=False
      )
  
      with self.assertRaisesRegex(
          ValueError,
          "Cannot pass `offset` at call time if `create_offset=True`.",
      ):
          layer(np.ones([2, 3, 4]), offset=np.ones([4]))
  
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 10 for calling the LayerNormTest obj's underlying member method code with example usage: obj.test_create_offset_and_offset_provided() without return types