code: def test_when_preset_not_srq_raise_error(self):
      self._create_matmul_model(
          input_shape=(1, 1024),
          weight_shape=(1024, 3),
          saved_model_path=self._input_saved_model_path,
      )
  
      config = quant_opts_pb2.QuantizationOptions(
          quantization_method=quant_opts_pb2.QuantizationMethod(
              preset_method=_PresetMethod.METHOD_NO_QUANTIZE
          ),
          tags={tag_constants.SERVING},
          signature_keys=["serving_default"],
          op_set=quant_opts_pb2.STABLEHLO,
      )
  
      with self.assertRaisesRegex(
          ValueError, "only supports static-range PTQ"
      ):
          quantization.quantize_saved_model(
              self._input_saved_model_path,
              self._output_saved_model_path,
              config,
          )
  
file_path: tensorflow-upstream/tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
imports: import itertools
  from typing import Optional, Sequence
  from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.mlir.quantization.stablehlo.python import quantization
  from tensorflow.compiler.mlir.quantization.stablehlo.python.integration_test import quantize_model_test_base
  from tensorflow.compiler.mlir.quantization.tensorflow import quantization_options_pb2
  from tensorflow.compiler.mlir.quantization.tensorflow.python import representative_dataset
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.python.saved_model import load
  from tensorflow.python.saved_model import tag_constants
label_desc: Use image node_id 4 for calling the StaticRangeQuantizationTest obj's underlying member method code with example usage: obj.test_when_preset_not_srq_raise_error() without return types