code: def create_tf():
      import tensorflow as tf
      from tensorflow import keras
      from tensorflow.keras import layers
      from tensorflow.python.util import deprecation
  
      deprecation._PRINT_DEPRECATION_WARNINGS = False
      tf.compat.v1.disable_eager_execution()
      a = layers.Input(shape=(224, 224, 3), name="input")
      b = layers.Conv2D(
          kernel_size=(3, 3), filters=16, activation="relu"
      )(a)
      b = layers.MaxPool2D(pool_size=(5, 5))(b)
      b = layers.Conv2D(
          kernel_size=(3, 3), filters=64, activation="relu"
      )(b)
      b = layers.Flatten()(b)
      b = layers.Dense(10, activation="softmax", name="output")(b)
      model = keras.Model(inputs=a, outputs=b)
  
      model.compile(optimizer="sgd", loss="categorical_crossentropy")
      # save TF checkpoint
      model.save_weights("./test_model_ckpt/ckpt")
      tf.compat.v1.train.export_meta_graph(
          filename="./test_model_ckpt/ckpt.meta"
      )
      # save keras model
      model.save("./test_model.h5")
      # save TF savedmodel
      model.save("./test_savedmodel", save_format="tf")
  
      print(model.input)
      print(model.output)
  
label_desc: Use image node_id 1 for calling a global function with example usage: create_tf() without return types