Revert "Rewrite assert statement with torch._assert under config (#88246)"
This reverts commit 62ba15e10e875ce088dff26e872605ee70c8c04a.
Reverted https://github.com/pytorch/pytorch/pull/88246 on behalf of https://github.com/DanilBaibak due to breaking internal builds