[BE] Refactor repetitions into TorchVersion._cmp_wrapper` (#71344)
Summary:
First step towards https://github.com/pytorch/pytorch/issues/71280
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71344
Reviewed By: b0noI
Differential Revision: D33594463
Pulled By: malfet
fbshipit-source-id: 0295f0d9f0342f05a390b2bd4aa0a5958c76579b