def _verify_ordering(self, a: Any, b: Any, sign: int):
        """Checks that (a vs b) == (0 vs sign) and (b vs a) == (sign vs 0)."""
        self._verify_ordering_one_sided(a, b, sign)
        self._verify_ordering_one_sided(b, a, -sign)
Checks that (a vs b) == (0 vs sign) and (b vs a) == (sign vs 0).
cirq-core/cirq/testing/order_tester.py