def METHOD_NAME(self, w, r):
    if self.duals is None:
        self.recomputeduals()
        assert self.duals is not None
    return self.duals[1][0]["qfunc"](1, w, r) if self.duals[1][0] is not None else 1