code: def test_call_by_saved_model(self):
      self._export(self._model, self._saved_model_path)
      self.assertTrue(
          tf.saved_model.contains_saved_model(self._saved_model_path)
      )
  
      saved_model = tf.saved_model.load(
          export_dir=self._saved_model_path
      )
      elwc_predictor = saved_model.signatures[
          tf.saved_model.PREDICT_METHOD_NAME
      ]
      listwise_logits = elwc_predictor(
          tf.convert_to_tensor(
              [
                  EXAMPLE_LIST_PROTO_1.SerializeToString(),
                  EXAMPLE_LIST_PROTO_1.SerializeToString(),
              ]
          )
      )[tf.saved_model.PREDICT_OUTPUTS]
      self.assertAllEqual([2, 2], listwise_logits.get_shape().as_list())
  
      tf_example_predictor = saved_model.signatures[
          tf.saved_model.REGRESS_METHOD_NAME
      ]
      pointwise_logits = tf_example_predictor(
          tf.convert_to_tensor(
              [
                  TF_EXAMPLE_PROTO_1.SerializeToString(),
                  TF_EXAMPLE_PROTO_2.SerializeToString(),
              ]
          )
      )[tf.saved_model.REGRESS_OUTPUTS]
      self.assertAllEqual([2], pointwise_logits.get_shape().as_list())
      self.assertAllClose(pointwise_logits, listwise_logits[0])
  
      del pointwise_logits
      serving_default = saved_model.signatures[
          tf.saved_model.DEFAULT_SERVING_SIGNATURE_DEF_KEY
      ]
      pointwise_logits = serving_default(
          tf.convert_to_tensor(
              [
                  TF_EXAMPLE_PROTO_1.SerializeToString(),
                  TF_EXAMPLE_PROTO_2.SerializeToString(),
              ]
          )
      )[tf.saved_model.REGRESS_OUTPUTS]
      self.assertAllEqual([2], pointwise_logits.get_shape().as_list())
      self.assertAllClose(pointwise_logits, listwise_logits[0])
  
file_path: ranking/tensorflow_ranking/python/keras/saved_model_test.py
imports: import tensorflow
  from google.protobuf import text_format
  from tensorflow_ranking.python.keras import saved_model
  from tensorflow_serving.apis import input_pb2
label_desc: Use image node_id 3 for calling the SignaturesTest obj's underlying member method code with example usage: obj.test_call_by_saved_model() without return types