Revert "Recursively print graph module and its submodule (#81080)"
This reverts commit fe7262329c6ae702df185bdbeac702e0d2edc123.
Reverted https://github.com/pytorch/pytorch/pull/81080 on behalf of https://github.com/DanilBaibak due to Break internal build