code: def _export_fn(
      estimator,
      export_path,
      checkpoint_path,
      eval_result,
      is_the_final_export,
  ):
      del estimator, checkpoint_path, eval_result, is_the_final_export
      path = os.path.join(export_path, BASE_EXPORT_SUBDIR)
      fileio.makedirs(path)
      with fileio.open(
          os.path.join(path, ORIGINAL_SAVED_MODEL), "w"
      ) as f:
          f.write(str(ORIGINAL_SAVED_MODEL))
  
      assets_path = os.path.join(path, tf.saved_model.ASSETS_DIRECTORY)
      fileio.makedirs(assets_path)
      with fileio.open(
          os.path.join(assets_path, ORIGINAL_VOCAB), "w"
      ) as f:
          f.write(str(ORIGINAL_VOCAB))
  
      return path
  
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 a global function with example usage: _export_fn(estimator, export_path, checkpoint_path, eval_result, is_the_final_export) and returns: path