code: def testNoOffsetBetaInitProvided(self):
      with self.assertRaisesRegex(
          ValueError,
          "Cannot set `offset_init` if `create_offset=False`",
      ):
          batch_norm.BaseBatchNorm(
              moving_mean=TestMetric(),
              moving_variance=TestMetric(),
              create_scale=True,
              create_offset=False,
              offset_init=initializers.Zeros(),
          )
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  from sonnet.src import batch_norm
  from sonnet.src import initializers
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 15 for calling the BaseBatchNormTest obj's underlying member method code with example usage: obj.testNoOffsetBetaInitProvided() without return types