code: def testMovingAvgSymmetricQuantizeNarrowRangeTrainingAssign(self):
      min_value, max_value = self._GetMinMaxValues(
          quant_ops.MovingAvgQuantize,
          [tf.constant([-1, 0.5]), tf.constant([0.0, 0.0])],
          symmetric=True,
          narrow_range=True,
      )
      self.assertAlmostEqual(min_value, -0.000999, delta=1e-6)
      self.assertAlmostEqual(max_value, 0.000999, delta=1e-6)
      self.assertAlmostEqual(max_value, -min_value)
  
file_path: model-optimization/tensorflow_model_optimization/python/core/quantization/keras/quant_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tensorflow_model_optimization.python.core.keras import compat
  from tensorflow_model_optimization.python.core.quantization.keras import quant_ops
label_desc: Use image node_id 9 for calling the QuantOpsTest obj's underlying member method code with example usage: obj.testMovingAvgSymmetricQuantizeNarrowRangeTrainingAssign() without return types