def _resolve_unscoped(self, from_scope):
        for name, nodes in list(from_scope.unscoped_names.items()):
            if name in self.names or self.is_global(name):
                self.names[name].extend(nodes)
                from_scope.unscoped_names.pop(name)
            elif self.is_module:
                from_scope.names[name].extend(nodes)
                from_scope.unscoped_names.pop(name)
dataset/ETHPy150Open Suor/flaws/flaws/scopes.py/Scope._resolve_unscoped/original