code: def test_unknown_shape_raises(self):
      x = test_utils.get_tensor_with_random_shape()
      stage = self.default_encoding_stage()
      params, _ = stage.get_params()
      with self.assertRaisesRegexp(ValueError, "fully known"):
          stage.encode(x, params)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.stages.research import kashin
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 14 for calling the KashinHadamardEncodingStageTest obj's underlying member method code with example usage: obj.test_unknown_shape_raises() without return types