docstr: Tests invalid encoder argument.
docstr_tok: ["Tests","invalid","encoder","argument","."]
code: def test_not_an_encoder_raises(self, not_an_encoder):
      """Tests invalid encoder argument."""
      tensorspec = tf.TensorSpec((1,), tf.float32)
      with self.assertRaisesRegex(TypeError, "Encoder"):
          simple_encoder.SimpleEncoder(not_an_encoder, tensorspec)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  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 simple_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 9 for calling the SimpleEncoderTest obj's underlying member method code with example usage: obj.test_not_an_encoder_raises(not_an_encoder) without return types