docstr: Tests tensorspec without fully defined shape.
docstr_tok: ["Tests","tensorspec","without","fully","defined","shape","."]
code: def test_not_fully_defined_shape_raises(self):
      """Tests tensorspec without fully defined shape."""
      encoder = core_encoder.EncoderComposer(
          test_utils.PlusOneOverNEncodingStage()
      ).make()
      with self.assertRaisesRegex(TypeError, "fully defined"):
          gather_encoder.GatherEncoder.from_encoder(
              encoder, tf.TensorSpec((None,), tf.float32)
          )
  
imports: import collections
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow.python.framework import test_util
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import core_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import encoding_stage
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import gather_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 10 for calling the GatherEncoderTest obj's underlying member method code with example usage: obj.test_not_fully_defined_shape_raises() without return types