code: def make_export_strategy(
      eval_input_receiver_fn: Callable[[], Any],
      serving_input_receiver_fn: Optional[
          Callable[[], tf_estimator.export.ServingInputReceiver]
      ] = None,
      exports_to_keep: Optional[int] = 5,
  ) -> Any:
      """Create an ExportStrategy for EvalSavedModel.
  
      Note: The strip_default_attrs is not used for EvalSavedModel export. And
      writing the EvalSavedModel proto in text format is not supported for now.
  
      Args:
        eval_input_receiver_fn: Eval input receiver function.
        serving_input_receiver_fn: (Optional) Serving input receiver function. We
          recommend that you provide this as well, so that the exported SavedModel
          also contains the serving graph. If not provided, the serving graph will
          not be included in the exported SavedModel.
        exports_to_keep: Number of exports to keep.  Older exports will be
          garbage-collected.  Defaults to 5.  Set to None to disable garbage
          collection.
  
      Returns:
        A legacy ExportStrategy for EvalSavedModel that can be passed to a legacy
        Experiment constructor.
      """
      return util.legacy_export_strategy(
          eval_input_receiver_fn,
          serving_input_receiver_fn,
          exports_to_keep,
          export_eval_savedmodel,
      )
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/export.py
imports: from typing import Any, Callable, Dict, Optional, Union
  import tensorflow
  from tensorflow import estimator
  from tensorflow_model_analysis import version
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import constants
  from tensorflow_model_analysis.eval_saved_model import encoding
  from tensorflow_model_analysis.eval_saved_model import util
  from tensorflow_model_analysis.utils import util
  from tensorflow.python.estimator.export import export
label_desc: Use image node_id 7 for calling a global function with example usage: make_export_strategy(eval_input_receiver_fn, serving_input_receiver_fn, exports_to_keep) and returns: util