Revert "torchdynamo support modules() for nn_module (#88023)"
This reverts commit 96104c7b7e908634a473792b6b2e9279d79d23d8.
Reverted https://github.com/pytorch/pytorch/pull/88023 on behalf of https://github.com/ydwu4 due to [Internal breakages] https://www.internalfb.com/intern/sandcastle/job/9007200067589062/