def find_file_mismatch_nodes():
    return [
        node for node in Node.find()
        if set(node.files_versions.keys()) != set(node.files_current.keys())
    ]
Find nodes with inconsistent `files_current` and `files_versions` field
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/migrate_inconsistent_file_keys.py/find_file_mismatch_nodes