code: def printImportedNames(self):
          
          for module in self.listModules():
              print("%s:" % module.modname)
              print("  %s" % "\n  ".join(imp.name for imp in module.imported_names))
docs: Produce a report of imported names.