code: def testDataFormatAgnosticTensor(self):
      c_last = group_norm.GroupNorm(
          groups=5, create_scale=False, create_offset=False
      )
      c_first = group_norm.GroupNorm(
          groups=5,
          data_format="NCHW",
          create_scale=False,
          create_offset=False,
      )
  
      inputs = tf.random.uniform([3, 4, 4, 10], 0, 10)
      scale = tf.random.normal((10,), mean=1.0)
      offset = tf.random.normal((10,))
  
      c_last_output = c_last(inputs, scale, offset)
      inputs = tf.transpose(inputs, [0, 3, 1, 2])
      scale = tf.reshape(scale, (10, 1, 1))
      offset = tf.reshape(offset, (10, 1, 1))
      c_first_output = c_first(inputs, scale, offset)
      c_first_output = tf.transpose(c_first_output, [0, 2, 3, 1])
  
      self.assertAllClose(c_last_output, c_first_output, rtol=1e-5)
  
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 7 for calling the GroupNormTest obj's underlying member method code with example usage: obj.testDataFormatAgnosticTensor() without return types