Code for the analyses in "Non-agency interventions for causal mediation in the presence of intermediate confounding"