def get_last_conv_layer(keras_model):
  """ 
  Get last convolution layer name of keras model 
  input: Keras model 
  output: string of the name of the last convolution layer
  Make sure last convolution layer has "conv" in the name!
  """
  layer_names=[layer.name for layer in keras_model.layers]
  layer_names.reverse() 
  # This loop cycles the reversed list an extracts the name of the last conv layer
  for i in range(0,len(layer_names)):
    if "conv" in layer_names[i]:
      conv_layer=layer_names[i]; 
      print("The last convolution layer is:", conv_layer)
      return conv_layer