rgs)
    out_dict = apply_vfuncs(out_dict, data_dict, lazy)

    if is_async and not lazy:
        out_keys = list(out_dict.keys())
        out_vals = list(out_dict.values())
        if isinstance(out_vals[0], ray.ObjectRef):
            out_vals = ray.get(out_vals)
        out_dict = dict(zip(out_keys, out_vals))

    return out_dict


def prediction_uncertainty(preds, group_by: list = None):
    &#34;&#34;&#34;Returns the mean and std predictions conditional on group_by

    Params
    ------
    preds
  