code: def test_no_scale_and_init_provided(self):
      with self.assertRaisesRegex(
          ValueError, "Cannot set `scale_init` if `create_scale=False`"
      ):
          batch_norm.BatchNorm(
              create_scale=False,
              create_offset=True,
              decay_rate=0.9,
              scale_init=jnp.ones,
          )
  
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 8 for calling the BatchNormTest obj's underlying member method code with example usage: obj.test_no_scale_and_init_provided() without return types