code: def test_valid(self):
      with ops.Graph().as_default(), context.eager_mode():
          input_value = (
              constant_op.constant(
                  [-0.8, -0.5, 0, 0.3, 0.8, -2.0],
                  shape=(6,),
                  dtype=dtypes.float32,
              ),
          )
          input_min = constant_op.constant(
              -127, shape=(), dtype=dtypes.float32
          )
          input_max = constant_op.constant(
              127, shape=(), dtype=dtypes.float32
          )
          num_bits = constant_op.constant(
              8, shape=(), dtype=dtypes.int32
          )
  
          quantized = array_ops.quantize_and_dequantize_v3(
              input_value,
              input_min,
              input_max,
              num_bits,
              signed_input=True,
              range_given=False,
          )
          self.assertSequenceAlmostEqual(
              input_value[0].numpy(), quantized.numpy()[0], delta=0.05
          )
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the QuantizeAndDequantizeV3OpTest obj's underlying member method code with example usage: obj.test_valid() without return types