code: def printImports(self):
          
          for module in self.listModules():
              print("%s:" % module.label)
              if self.external_dependencies:
                  imports = list(module.imports)
              else:
                  imports = [modname for modname in module.imports
                             if modname in self.modules]
              imports.sort()
              print("  %s" % "\n  ".join(imports))
docs: Produce a report of dependencies.