docstr: Tests input_tensorspec property.
docstr_tok: ["Tests","input_tensorspec","property","."]
code: def test_input_tensorspec(self):
      """Tests input_tensorspec property."""
      x = tf.constant([[1.0, 2.0], [3.0, 4.0]])
      encoder = gather_encoder.GatherEncoder.from_encoder(
          core_encoder.EncoderComposer(
              test_utils.PlusOneOverNEncodingStage()
          ).make(),
          tf.TensorSpec.from_tensor(x),
      )
      self.assertTrue(encoder.input_tensorspec.is_compatible_with(x))
  
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 9 for calling the GatherEncoderTest obj's underlying member method code with example usage: obj.test_input_tensorspec() without return types