def METHOD_NAME(self, saved: SavedScope) -> Iterator[None]:
    module, info, function = saved
    with self.module_scope(module):
        with self.class_scope(info) if info else nullcontext():
            with self.function_scope(function) if function else nullcontext():
                yield