def fetch_images(ctx, cache, images_info, force_raw=True):

    try:
        image_cache.clean_up_caches(ctx, cache.master_dir, images_info)
    except exception.InsufficientDiskSpace as e:
        raise exception.InstanceDeployFailure(reason=e)

    # NOTE(dtantsur): This code can suffer from race condition,
    # if disk space is used between the check and actual download.
    # This is probably unavoidable, as we can't control other
    # (probably unrelated) processes
    for href, path in images_info:
        cache.fetch_image(href, path, ctx=ctx, force_raw=force_raw)
Test the constant moments of Dirichlet nodes.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/deploy_utils.py/fetch_images--crossover with--dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/tests/test_dirichlet.py/TestDirichlet.test_constant