def mutating_method(func):
    def wrapper(self, *__args, **__kwargs):
        old_mutable = self._mutable
        self._mutable = True
        try:
            # Call the wrapped function
            return func(self, *__args, **__kwargs)
        finally:
            self._mutable = old_mutable
    return wrapper
Verify tags are correctly inherited
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/util.py/mutating_method--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipaptest.py/TestPrefixTags.test_tags1