code: def test_constructor_raises(self):
      with self.assertRaises(TypeError):
          core_encoder.EncoderComposer("not an encoding stage")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import numpy
  import tensorflow
  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.testing import test_utils
label_desc: Use image node_id 4 for calling the EncoderComposerTest obj's underlying member method code with example usage: obj.test_constructor_raises() without return types