Add `any_chain()` in upstream (#90949)
Summary: I need any chain. Current chain is logical AND.
Test Plan: arc lint, follow-up diffs use it.
Differential Revision: D42078837
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90949
Approved by: https://github.com/angelayi