def do_import_module(self, modname=None):
<EOL>mymodule = self.root()<EOL>level = getattr(self, "<STR_LIT>", None)  <EOL>if modname is None:<EOL><INDENT>modname = self.modname<EOL><DEDENT>if mymodule.relative_to_absolute_name(modname, level) == mymodule.name:<EOL><INDENT>return mymodule<EOL><DEDENT>return mymodule.import_module(<EOL>modname, level=level, relative_only=level and level >= <NUM_LIT:1><EOL>)<EOL>
return the ast for a module whose name is <modname> imported by <self>