def _is_plain_keras(model):
    try:
        import keras.engine.network
        return isinstance(model, keras.engine.network.Network)
    except ImportError:
        return False
def _is_plain_keras(model):
    try:
        import keras.engine.network
        return isinstance(model, keras.engine.network.Network)
    except ImportError:
        return False