code: def _save_plus_one_saved_model_v2_keras_default_callable(path):
      """Writes Hub-style SavedModel that increments the input by one."""
      obj = tf.train.Checkpoint()
  
      @tf.function(
          input_signature=[tf.TensorSpec(None, dtype=tf.float32)]
      )
      def plus_one(x):
          return x + 1
  
      @tf.function(
          input_signature=[
              tf.TensorSpec(None, dtype=tf.float32),
              tf.TensorSpec((), dtype=tf.bool),
          ]
      )
      def keras_default(x, training=False):
          if training:
              return x + 1
          return x
  
      obj.__call__ = keras_default
      obj.plus_one = plus_one
      tf.saved_model.save(
          obj, path, signatures={"plus_one": obj.plus_one}
      )
  
imports: import json
  import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_hub
label_desc: Use image node_id 13 for calling a global function with example usage: _save_plus_one_saved_model_v2_keras_default_callable(path) and returns: unknown, x, unknown