Reland "Add heirachical module names to torchFX graph.node" (#90205)
Fixes #87659
Reland of PR #87742
Resolves errors that caused the changes to be backed out.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90205
Approved by: https://github.com/jerryzh168