def METHOD_NAME(params):
    alpha = params["alpha"]
    densities = tuple(
        params[f"{i}"] for i in range(len(params) - 1)
    )  # params has n hist entries + 1 alpha entry
    return spline_interpolator(
        alpha=alpha, alphas=alphas, densities=densities
    )