code: def test_no_offset_beta_init_provided(self):
      with self.assertRaisesRegex(
          ValueError,
          "Cannot set `offset_init` if `create_offset=False`",
      ):
          batch_norm.BatchNorm(
              create_scale=True,
              create_offset=False,
              decay_rate=0.9,
              offset_init=jnp.zeros,
          )
  
imports: import os
  from absl.testing import absltest
  from haiku._src import base
  from haiku._src import batch_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 9 for calling the BatchNormTest obj's underlying member method code with example usage: obj.test_no_offset_beta_init_provided() without return types