def add_import(self, *names):
        for module, name in names:
            if module and module.startswith('.'):
                module = utils.resolve_import(module, self.import_path)
            elif not module:
                module = ''
            module = '.'.join((module, name.strip('.'))).strip('.')
            if self._imports not in module:
                self._imports.add(module)
                self.imports.append(ResolvedImport(module, self.import_root))
dataset/ETHPy150Open tweekmonster/moult/moult/ast_scanner.py/ImportNodeVisitor.add_import/swapped operands of `not in`