def visit_module(self, node, modname, modpath, package):
        """visit a Module node by returning a fresh instance of it"""
        node, doc = self._get_doc(node)
        newnode = nodes.Module(
            name=modname,
            doc=doc,
            file=modpath,
            path=[modpath],
            package=package,
            parent=None,
        )
        newnode.postinit([self.visit(child, newnode) for child in node.body])
        return newnode
def visit_module ( self , node , modname , modpath , package ) : node , doc = self . _get_doc ( node ) newnode = nodes . Module ( name = modname , doc = doc , file = modpath , path = [ modpath ] , package = package , parent = None , ) newnode . postinit ( [ self . visit ( child , newnode ) for child in node . body ] ) return newnode
visit a Module node by returning a fresh instance of it