def _clear_warning_registry(self):
    if ('__warningregistry__' in self.user_global_ns):
        del self.user_global_ns['__warningregistry__']
def _clear_warning_registry(self):
    if ('__warningregistry__' in self.user_global_ns):
        del self.user_global_ns['__warningregistry__']