code: def testCreateOffsetAndOffsetProvided(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(tf.ones([2, 3, 5]), offset=tf.ones([4]))
  
imports: from absl.testing import parameterized
  import numpy
  from sonnet.src import group_norm
  from sonnet.src import initializers
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 15 for calling the GroupNormTest obj's underlying member method code with example usage: obj.testCreateOffsetAndOffsetProvided() without return types