code: def testServingGraphAlsoExportedIfSpecified(self):
      # Most of the example trainers also pass serving_input_receiver_fn to
      # export_eval_savedmodel, so the serving graph should be included.
      temp_eval_export_dir = self._getEvalExportDir()
      (
          _,
          eval_export_dir,
      ) = fixed_prediction_estimator.simple_fixed_prediction_estimator(
          None, temp_eval_export_dir
      )
  
      # Check the eval graph.
      eval_saved_model = load.EvalSavedModel(eval_export_dir)
      example1 = self._makeExample(
          prediction=0.9, label=0.0
      ).SerializeToString()
      eval_saved_model.metrics_reset_update_get(example1)
  
      metric_values = eval_saved_model.get_metric_values()
      self.assertDictElementsAlmostEqual(
          metric_values, {"average_loss": 0.81}
      )
  
      # Check the serving graph.
      # TODO(b/124466113): Remove tf.compat.v2 once TF 2.0 is the default.
      if hasattr(tf, "compat.v2"):
          imported = tf.compat.v2.saved_model.load(
              eval_export_dir, tags=tf.saved_model.SERVING
          )
          predictions = imported.signatures[
              tf.saved_model.DEFAULT_SERVING_SIGNATURE_DEF_KEY
          ](inputs=tf.constant([example1.SerializeToString()]))
          self.assertAllClose(predictions["outputs"], np.array([[0.9]]))
  
imports: import os
  import numpy
  import tensorflow
  from tensorflow_model_analysis.eval_saved_model import encoding
  from tensorflow_model_analysis.eval_saved_model import load
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.eval_saved_model.example_trainers import control_dependency_estimator
  from tensorflow_model_analysis.eval_saved_model.example_trainers import csv_linear_classifier
  from tensorflow_model_analysis.eval_saved_model.example_trainers import custom_estimator
  from tensorflow_model_analysis.eval_saved_model.example_trainers import dnn_classifier
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fake_multi_examples_per_input_estimator
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fake_sequence_to_prediction
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fixed_prediction_classifier
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fixed_prediction_estimator
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fixed_prediction_estimator_no_labels
  from tensorflow_model_analysis.eval_saved_model.example_trainers import linear_classifier
  from tensorflow_model_analysis.eval_saved_model.example_trainers import linear_classifier_multivalent
  from tensorflow_model_analysis.eval_saved_model.example_trainers import multi_head
  from tensorflow_model_analysis.post_export_metrics import metrics
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 26 for calling the IntegrationTest obj's underlying member method code with example usage: obj.testServingGraphAlsoExportedIfSpecified() without return types