code: def test_as_adaptive_encoding_stage_raises(self, not_a_stage):
      with self.assertRaises(TypeError):
          encoding_stage.as_adaptive_encoding_stage(not_a_stage)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import mock
  import numpy
  import tensorflow
  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 3 for calling the NoneStateAdaptiveEncodingStageTest obj's underlying member method code with example usage: obj.test_as_adaptive_encoding_stage_raises(not_a_stage) without return types