This code is even more poorly documented, but much more straightforward.  For each `INSTALLED_APP`, it loads the `settings.py` file, sees its dependencies (within that app's `INSTALLED_APPS` variable), and then greps its code to verify that all imports obey these dependencies.