def update_import_from_module_names(self, original_node, updated_node) -> cst.ImportFrom:
        """Renames modules in 'from ... import ...' statements."""
        module = original_node.module.attr.value
        self.do_lint(original_node, module)
        new_module = MODULE_MAP[module]
        return updated_node.with_changes(module=new_module)
Renames modules in 'from ... import ...' statements.
libqtile/scripts/migrations/module_renames.py