code: def rewrite_saved_model(
      src: str,
      dst: str,
      rewriter_inst: rewriter.BaseRewriter,
      dst_model_type: rewriter.ModelType = rewriter.ModelType.SAVED_MODEL,
  ):
      """Rewrites the provided SavedModel.
  
      Args:
        src: location of the saved_model to rewrite.
        dst: location of the rewritten saved_model.
        rewriter_inst: the rewriter instance to invoke. Must inherit from
          `rewriter.BaseRewriter`.
        dst_model_type: the `rewriter.ModelType` of the destination model.
      """
      _invoke_rewriter(
          src,
          dst,
          rewriter_inst,
          rewriter.ModelType.SAVED_MODEL,
          dst_model_type,
      )
  
file_path: tfx/tfx/components/trainer/rewriting/converters.py
imports: import os
  import time
  from tensorflow import estimator
  from tfx.components.trainer.rewriting import rewriter
  from tfx.dsl.io import fileio
label_desc: Use image node_id 2 for calling a global function with example usage: rewrite_saved_model(src, dst, rewriter_inst, dst_model_type) without return types