def METHOD_NAME(model_run_with_all_project_labels,
                                  model_run_predictions):
    model_run = model_run_with_all_project_labels
    # TODO: Move to export_v2
    model_run_exported_labels = model_run.export_labels(download=True)
    labels_indexed_by_schema_id = {}
    for label in model_run_exported_labels:
        # assuming exported array of label 'objects' has only one label per data row... as usually is when there are no label revisions
        schema_id = label['Label']['objects'][0]['schemaId']
        labels_indexed_by_schema_id[schema_id] = label
    assert (len(
        labels_indexed_by_schema_id.keys())) == len(model_run_predictions)
    # making sure the labels are in this model run are all labels uploaded to the project
    # by comparing some 'immutable' attributes
    for expected_label in model_run_predictions:
        schema_id = expected_label['schemaId']
        actual_label = labels_indexed_by_schema_id[schema_id]
        assert actual_label['Label']['objects'][0]['title'] == expected_label[
            'name']
        assert actual_label['DataRow ID'] == expected_label['dataRow']['id']