class_docstr: Test cases for quantize_model python wrappers.
code: def test_quantize_model_fails_when_invalid_quant_options_serialization(
      self,
  ):
      src_saved_model_path = self.create_tempdir().full_path
      dst_saved_model_path = self.create_tempdir().full_path
      signature_def_keys = ["serving_default"]
      quant_opts_serialized = (
          "invalid proto serialization string".encode("utf-8")
      )
  
      with self.assertRaisesRegex(
          TypeError, "incompatible function arguments"
      ):
          pywrap_quantize_model.quantize_ptq_static_range(
              src_saved_model_path,
              dst_saved_model_path,
              quant_opts_serialized,
              signature_keys=signature_def_keys,
              signature_def_map_serialized={},
              function_aliases={},
              py_function_library=py_function_lib.PyFunctionLibrary(),
              representative_dataset=None,
          )
  
imports: from tensorflow.compiler.mlir.quantization.tensorflow.python import py_function_lib
  from tensorflow.compiler.mlir.quantization.tensorflow.python import pywrap_quantize_model
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the PywrapQuantizeModelTest obj's underlying member method code with example usage: obj.test_quantize_model_fails_when_invalid_quant_options_serialization() without return types