add a few convenience helpers to removeAllXXX to Block and Node (#67423)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67423
Test Plan: Imported from OSS
Reviewed By: jbschlosser
Differential Revision: D31998566
Pulled By: Krovatkin
fbshipit-source-id: ed435d5c35e44ab2676c47b43d6e2aa8e79d9ab2