code: def testQuantizeTraining(self):
      with session.Session() as sess:
          a = constant_op.constant(6.0, shape=[1, 1])
          b = constant_op.constant(7.0, shape=[1, 1])
          c = math_ops.matmul(a, b, name="matmul")
  
          self.assertEqual(c.eval(), 42.0)
          self.assertEqual(len(sess.graph_def.node), 3)
  
          result = quantize_training.do_quantize_training_on_graphdef(
              sess.graph_def, 8
          )
  
          # We just want to guarantee that some rewrite happened.
          self.assertGreater(len(result.node), 3)
  
file_path: tensorflow-upstream/tensorflow/python/training/quantize_training_test.py
imports: import os
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import importer
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import quantize_training
  from tensorflow.python.training import saver
label_desc: Use image node_id 1 for calling the PywrapQuantizeTrainingTest obj's underlying member method code with example usage: obj.testQuantizeTraining() without return types