code: def testInvokeTFLiteRewriterQuantizationFullIntegerSucceeds(
      self, converter
  ):
      m = self.ConverterMock()
      converter.return_value = m
  
      (
          src_model,
          dst_model,
          _,
          dst_model_path,
      ) = self.create_temp_model_template()
  
      def representative_dataset():
          for i in range(2):
              yield [np.array(i)]
  
      tfrw = tflite_rewriter.TFLiteRewriter(
          name="myrw",
          filename="fname",
          quantization_optimizations=[tf.lite.Optimize.DEFAULT],
          quantization_enable_full_integer=True,
          representative_dataset=representative_dataset,
      )
      tfrw.perform_rewrite(src_model, dst_model)
  
      converter.assert_called_once_with(
          saved_model_path=mock.ANY,
          quantization_optimizations=[tf.lite.Optimize.DEFAULT],
          quantization_supported_types=[],
          representative_dataset=representative_dataset,
          signature_key=None,
      )
      expected_model = os.path.join(dst_model_path, "fname")
      self.assertTrue(fileio.exists(expected_model))
      with fileio.open(expected_model, "rb") as f:
          self.assertEqual(f.read(), b"model")
  
file_path: tfx/tfx/components/trainer/rewriting/tflite_rewriter_test.py
imports: import os
  import tempfile
  from unittest import mock
  import numpy
  import tensorflow
  from tfx.components.trainer.rewriting import rewriter
  from tfx.components.trainer.rewriting import tflite_rewriter
  from tfx.dsl.io import fileio
label_desc: Use image node_id 7 for calling the TFLiteRewriterTest obj's underlying member method code with example usage: obj.testInvokeTFLiteRewriterQuantizationFullIntegerSucceeds(converter) without return types