code: def export_model_and_eval_model(
      estimator,
      serving_input_receiver_fn=None,
      eval_input_receiver_fn=None,
      export_path=None,
      eval_export_path=None,
  ):
      """Export SavedModel and EvalSavedModel.
  
      Args:
        estimator: Estimator to export.
        serving_input_receiver_fn: Serving input receiver function.
        eval_input_receiver_fn: Eval input receiver function.
        export_path: Export path. If None, inference model is not exported.
        eval_export_path: Eval export path. If None, EvalSavedModel is not exported.
  
      Returns:
        Tuple of (path to the export directory, path to eval export directory).
      """
      export_path_result = None
      eval_export_path_result = None
  
      if export_path and serving_input_receiver_fn:
          export_path_result = estimator.export_saved_model(
              export_dir_base=export_path,
              serving_input_receiver_fn=serving_input_receiver_fn,
          )
      if eval_export_path and eval_input_receiver_fn:
          eval_export_path_result = export.export_eval_savedmodel(
              estimator=estimator,
              export_dir_base=eval_export_path,
              eval_input_receiver_fn=eval_input_receiver_fn,
              serving_input_receiver_fn=serving_input_receiver_fn,
          )
  
      return export_path_result, eval_export_path_result
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/example_trainers/util.py
imports: import tensorflow
  from tensorflow_model_analysis.eval_saved_model import export
  from tensorflow_model_analysis.eval_saved_model import util
label_desc: Use image node_id 8 for calling a global function with example usage: export_model_and_eval_model(estimator, serving_input_receiver_fn, eval_input_receiver_fn, export_path, eval_export_path) and returns: export_path_result,  eval_export_path_result