def METHOD_NAME(self):
    assert self.old != []
    while self.old:
        module, name, that = self.old.pop()
        # Python 2 wrongly sets the function `that' as an instancemethod
        # instead of keeping it as staticmethod.
        if inspect.isclass(module) and self._is_static_method(module,
                                                              name, that):
            that = staticmethod(that)
        setattr(module, name, that)