[FX] Add interface to reject nodes (#42865)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/42865
Test Plan: Imported from OSS
Reviewed By: zdevito
Differential Revision: D23056584
Pulled By: jamesr66a
fbshipit-source-id: 02db08165ab41be5f3c4b5ff253cbb444eb9a7b8