def METHOD_NAME(minimal_configuration, images_cfg, expected):
    """Check that base images are computed correctly when a
    bootstrap phase is present
    """
    minimal_configuration["spack"]["container"]["images"] = images_cfg
    writer = writers.create(minimal_configuration)
    for property_name, value in expected.items():
        assert getattr(writer, property_name) == value