docstr: See base class.
code: def common_asserts_for_test_data(self, data, rtol=1e-6, atol=1e-6):
      """See base class."""
      encoded_x = data.encoded_x[
          stages_impl.HadamardEncodingStage.ENCODED_VALUES_KEY
      ]
      self.assertAllClose(data.x, data.decoded_x, rtol=rtol, atol=atol)
      self.assertLen(encoded_x.shape, 2)
      # This is a rotation, hence, the norms should be the same.
      # If the input has dimension 1, the transform is applied to the whole input.
      # If the input has dimension 2, the transform is applied to every single
      # vector separately.
      if len(data.x.shape) == 1:
          self.assertAllClose(
              np.linalg.norm(data.x),
              np.linalg.norm(encoded_x),
              rtol=rtol,
              atol=atol,
          )
      else:
          for x, y in zip(data.x, encoded_x):
              self.assertAllClose(
                  np.linalg.norm(x),
                  np.linalg.norm(y),
                  rtol=rtol,
                  atol=atol,
              )
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.stages import stages_impl
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 4 for calling the HadamardEncodingStageTest obj's underlying member method code with example usage: obj.common_asserts_for_test_data(data, rtol, atol) without return types