This task is more general. The idea is to restructure the main interface so that rather than making the lf2i object a dictionary that stores the test statistic, calibration estimator, and coverage probability estimator, reframe it as (possibly several discrete) functionals which operate on the above function estimates + input data as needed.