def get_locations_from_ids(location_ids, domain):
    location_ids = list(set(location_ids))
    expected_count = len(location_ids)

    locations = SQLLocation.objects.filter(
        domain=domain,
        is_archived=False,
        location_id__in=location_ids,
    )
    if len(locations) != expected_count:
        raise SQLLocation.DoesNotExist('One or more of the locations was not found.')
    return locations
Test that the 'passed_auto_validation' flag is correctly added,
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/locations/util.py/get_locations_from_ids--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_utils.py/TestAnnotateValidation.test_passed_based_on_signing_summary