[FX] Validate data type of target on Node Construction (#64050)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64050
Test Plan: Imported from OSS
Reviewed By: jamesr66a
Differential Revision: D30585535
Pulled By: yqhu
fbshipit-source-id: 96778a87e75f510b4ef42f0e5cf76b35b7b2f331