def METHOD_NAME(version, expected_range):
    # Create new HEPSubmission and DataSubmissions for ins1283842
    new_hep_submission = HEPSubmission(
        publication_recid=1, inspire_id=identifiers[0]["inspire_id"],
        version=version, overall_status='finished'
    )
    db.session.add(new_hep_submission)
    db.session.commit()
    new_data_submissions = []
    for i in range(5):
        new_data_submission = DataSubmission(
            publication_recid=1,
            associated_recid=1,
            version=version
        )
        db.session.add(new_data_submission)
        new_data_submissions.append(new_data_submission)
    db.session.commit()
    assert [x.id for x in new_data_submissions] == expected_range