def make_sure_keen_schemas_match(source_collection, destination_collection, keen_client):
 source_schema = keen_client.get_collection(source_collection)
 destination_schema = keen_client.get_collection(destination_collection)
 return (source_schema == destination_schema)

def make_sure_keen_schemas_match ( source_collection , destination_collection , keen_client ) : source_schema = keen_client . get_collection ( source_collection ) destination_schema = keen_client . get_collection ( destination_collection ) return ( source_schema == destination_schema )
helper function to check if two given collections have matching schemas in keen .