This reverts commit 6b28af1b79. Reverted https://github.com/pytorch/pytorch/pull/128898 on behalf of https://github.com/ZainRizvi due to Sorry, this broke a bunch of tests internally. See D60638265 ([comment](https://github.com/pytorch/pytorch/pull/128898#issuecomment-2265961038))
6b28af1b79
test/[a-c]*/
test/[q-z]*/
c10:optional
std::optional