code: def test_create_offset_and_offset_provided(self):
      layer = group_norm.GroupNorm(
          groups=5, create_offset=True, create_scale=False
      )
  
      with self.assertRaisesRegex(
          ValueError,
          "Cannot pass `offset` at call time if `create_offset=True`.",
      ):
          layer(jnp.ones([2, 3, 5]), offset=jnp.ones([4]))
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from haiku._src import group_norm
  from haiku._src import initializers
  from haiku._src import test_utils
  import jax.numpy
  import numpy
label_desc: Use image node_id 15 for calling the GroupNormTest obj's underlying member method code with example usage: obj.test_create_offset_and_offset_provided() without return types