code: def testRewritingExporterSucceeds(self, invoke_rewriter_mock):
      src = "/my/src"
      dst = "/my/dst"
      rewriter_inst = "r1"
      converters.rewrite_saved_model(src, dst, rewriter_inst)
      invoke_rewriter_mock.assert_called_once_with(
          src,
          dst,
          rewriter_inst,
          rewriter.ModelType.SAVED_MODEL,
          rewriter.ModelType.SAVED_MODEL,
      )
  
file_path: tfx/tfx/components/trainer/rewriting/converters_test.py
imports: import os
  import tempfile
  from absl.testing.absltest import mock
  import tensorflow
  from tensorflow import estimator
  from tfx.components.trainer.rewriting import converters
  from tfx.components.trainer.rewriting import rewriter
  from tfx.dsl.io import fileio
label_desc: Use image node_id 1 for calling the RewriteSavedModelTest obj's underlying member method code with example usage: obj.testRewritingExporterSucceeds(invoke_rewriter_mock) without return types