class_docstr: This class regularly exports the EvalSavedModel.
  
  In addition to exporting, this class also garbage collects stale exports.
class_docstr_tok: ["This","class","regularly","exports","the","EvalSavedModel",".","In","addition","to","exporting",",","this","class","also","garbage","collects","stale","exports","."]
code: def export(
      self,
      estimator: tf_estimator.Estimator,
      export_path: str,
      checkpoint_path: Optional[str],
      eval_result: Optional[bytes],
      is_the_final_export: bool,
  ) -> bytes:
      export_result = self._eval_saved_model_exporter.export(
          estimator,
          export_path,
          checkpoint_path,
          eval_result,
          is_the_final_export,
      )
  
      self._garbage_collect_exports(export_path)
      return export_result
  
imports: from collections import abc
  import contextlib
  import os
  import types
  from typing import Callable, Dict, List, Optional, Union
  from tensorflow import estimator
  from tensorflow_model_analysis.eval_saved_model import export
  from tensorflow_model_analysis.utils import util
  from tensorflow.python.estimator import gc
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 3 for calling the LatestExporter obj's underlying member method code with example usage: obj.export(estimator, export_path, checkpoint_path, eval_result, is_the_final_export) and returns: export_result