code: def create_contour_metadata(contour_path):
      
      metadata = {
          'title': tr('Earthquake Contour'),
          'layer_purpose': layer_purpose_earthquake_contour['key'],
          'layer_geometry': layer_geometry_line['key'],
          'layer_mode': layer_mode_classified['key'],
          'inasafe_fields': {}
      }
  
      for contour_field in contour_fields:
          metadata['inasafe_fields'][contour_field['key']] = contour_field[
              'field_name']
  
      write_iso19115_metadata(contour_path, metadata)
docs: Create metadata file for contour layer.
  
      :param contour_path: Path where the contour is located.
      :type contour_path: basestring