def _is_tf_keras(model):
    try:
        import tensorflow.keras.models
        return isinstance(model, tensorflow.keras.models.Model)
    except ImportError:
        return False
def _is_tf_keras(model):
    try:
        import tensorflow.keras.models
        return isinstance(model, tensorflow.keras.models.Model)
    except ImportError:
        return False