def METHOD_NAME():
    with (TEST_DATA_DIR / "generate_selected_images.json").open("r") as f:
        IMAGE_DATA = json.load(f)
    selected_images = generate_selected_images(
        IMAGE_DATA["product"]["images"],
        ProductIdentifier(IMAGE_DATA["code"], ServerType.off),
    )
    assert selected_images["front"] == {
        "display": {
            "es": "https://images.openfoodfacts.net/images/products/541/004/104/0807/front_es.130.400.jpg",
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/front_fr.142.400.jpg",
        },
        "small": {
            "es": "https://images.openfoodfacts.net/images/products/541/004/104/0807/front_es.130.200.jpg",
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/front_fr.142.200.jpg",
        },
        "thumb": {
            "es": "https://images.openfoodfacts.net/images/products/541/004/104/0807/front_es.130.100.jpg",
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/front_fr.142.100.jpg",
        },
    }
    assert selected_images["nutrition"] == {
        "display": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/nutrition_fr.145.400.jpg"
        },
        "small": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/nutrition_fr.145.200.jpg"
        },
        "thumb": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/nutrition_fr.145.100.jpg"
        },
    }
    assert selected_images["ingredients"] == {
        "display": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/ingredients_fr.144.400.jpg"
        },
        "small": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/ingredients_fr.144.200.jpg"
        },
        "thumb": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/ingredients_fr.144.100.jpg"
        },
    }
    assert selected_images["packaging"] == {
        "display": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/packaging_fr.146.400.jpg"
        },
        "small": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/packaging_fr.146.200.jpg"
        },
        "thumb": {
            "fr": "https://images.openfoodfacts.net/images/products/541/004/104/0807/packaging_fr.146.100.jpg"
        },
    }