Call the function once, on both arms together. Then run the A/B test lesson's test for means on the adjusted metric, with Welch's standard error: each arm's sample variance over its users, added, under one square root. welch_se is the function you write at the end of this step.
# both arms, one call
y_adj, theta = cuped(y, x)
d = y_adj[t].mean() - y_adj[~t].mean()
se = welch_se(y_adj, t)
lo, hi = d - 1.96 * se, d + 1.96 * se
One call gives both arms the same θ and the same center, which is what the argument for an unbiased estimate needs. The paper puts it the same way: "the same θ has to be used for both control and treatment," and "The simplest way to estimate it is from the pooled population of control and treatment." In 10,000 simulated tests like the ones in the simulation step, this interval covered the true effect 94.7% of the time.
In the editor, write welch_se(y_adj, t): the standard error that goes with the adjusted difference.