def METHOD_NAME(path):
    def _new_add_rounded_rectangle(self, x, y, w, h, rx, ry):
        r = numpy.sqrt(rx * rx + ry * ry)
        self.AddRoundedRectangle(x, y, w, h, r)
    path.__class__.AddRoundedRectangleEx = _new_add_rounded_rectangle