Use the core API when the NPIV problem is already explicit.
Use this route when you already have observed covariates or
basis features X, a discrete instrument
Z, outcomes Y, and a target covariate
sample X_new defining the linear functional of
interest.
fit_structural_nuisancefit_dual_nuisanceestimate_average_functional