docstr: Create a simple SavedModel on the fly.
docstr_tok: ["Create","a","simple","SavedModel","on","the","fly","."]
code: def _createSimpleSavedModel(self, shape):
      """Create a simple SavedModel on the fly."""
      saved_model_dir = os.path.join(
          self.get_temp_dir(), "simple_savedmodel"
      )
      with session.Session() as sess:
          in_tensor = array_ops.placeholder(
              shape=shape, dtype=dtypes.float32
          )
          out_tensor = in_tensor + in_tensor
          inputs = {"x": in_tensor}
          outputs = {"y": out_tensor}
          saved_model.simple_save(
              sess, saved_model_dir, inputs, outputs
          )
      return saved_model_dir
  
imports: import os
  from tensorflow.lite.python import convert_saved_model
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
  from tensorflow.python.saved_model import saved_model
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model import tag_constants
label_desc: Use image node_id 1 for calling the FreezeSavedModelTest obj's underlying member method code with example usage: obj._createSimpleSavedModel(shape) and returns: saved_model_dir