def keras_convert_hdf5_model_to_tf_saved_model(model_path: InputPath('KerasModelHdf5'), converted_model_path: OutputPath('TensorflowSavedModel')):
    'Converts Keras HDF5 model to Tensorflow SavedModel format.\n\n    Args:\n        model_path: Keras model in HDF5 format.\n        converted_model_path: Keras model in Tensorflow SavedModel format.\n\n    Annotations:\n        author: Alexey Volkov <example@example.com>\n    '
    from pathlib import Path
    from tensorflow import keras
    model = keras.models.load_model(filepath=model_path)
    keras.models.save_model(model=model, filepath=converted_model_path, save_format='tf')
Converts Keras HDF5 model to Tensorflow SavedModel format.

Args:
    model_path: Keras model in HDF5 format.
    converted_model_path: Keras model in Tensorflow SavedModel format.

Annotations:
    author: Alexey Volkov <example@example.com>
def keras_convert_hdf5_model_to_tf_saved_model(model_path: InputPath('KerasModelHdf5'), converted_model_path: OutputPath('TensorflowSavedModel')):
    'Converts Keras HDF5 model to Tensorflow SavedModel format.\n\n    Args:\n        model_path: Keras model in HDF5 format.\n        converted_model_path: Keras model in Tensorflow SavedModel format.\n\n    Annotations:\n        author: Alexey Volkov <example@example.com>\n    '
    from pathlib import Path
    from tensorflow import keras
    model = keras.models.load_model(filepath=model_path)
    keras.models.save_model(model=model, filepath=converted_model_path, save_format='tf')