human
3.1. Implement serving input receiver functions
Serving function
We create serving input function that expects features dictionary and returns the prediction pobabilities from the model

What is a the Python program you requested?
assistant
#Here is the Python program you requested.
def make_features_serving_fn(model):

  @tf.function
  def serve_features_fn(features):
    return {MODEL_OUTPUT_KEY: model(features)}

  return serve_features_fn