code: def testRankChanges(self):
      layer = axis_norm.LayerNorm(
          (1, 2), create_scale=False, create_offset=False
      )
  
      inputs = tf.ones([2, 3, 3, 5])
      scale = tf.constant(0.5, shape=(5,))
      offset = tf.constant(2.0, shape=(5,))
  
      layer(inputs, scale, offset)
  
      with self.assertRaisesRegex(
          ValueError,
          "The rank of the inputs cannot change between calls, the original",
      ):
          layer(tf.ones([2, 3, 3, 4, 5]), scale, offset)
  
imports: from absl.testing import parameterized
  import numpy
  from sonnet.src import axis_norm
  from sonnet.src import initializers
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 17 for calling the LayerNormTest obj's underlying member method code with example usage: obj.testRankChanges() without return types