def METHOD_NAME(store, dataset, tag, new_changes):
    dataset_path = store.get_dataset_path(dataset)
    if new_changes is not None and len(new_changes) > 0:
        current_date = datetime.today().strftime('%Y-%m-%d')
        updated = write_new_changes(
            dataset_path, tag, new_changes, current_date)
        # Commit new content, run validator
        commit_files(store, dataset, ['CHANGES'])
        return updated
    else:
        return get_head_changes(dataset_path)