def METHOD_NAME(delta_begin, delta_end, density, norm_type):
    """
    Compute the norm of the values uniformaly distributed between
    delta_begin and delta_end.
    norm = density * (integral_{begin, end} x^2)
         = density * (end^3 - begin^3) / 3
    """
    assert norm_type == "L2", "Only L2 norms are currently supported"
    norm = 0.0
    if norm_type == "L2":
        norm = (
            delta_end * delta_end * delta_end
            - delta_begin * delta_begin * delta_begin
        ) / 3
    return density * norm