def test__gt__(self):
        """Test greater than comparison on a variable."""
        v = backend.Variable(initializer=np.array([1.0, 2.0]), trainable=False)
        self.assertAllClose(
            v.__gt__(np.array([1.0, 2.0])), np.array([False, False])
        )
Test greater than comparison on a variable.
keras/src/backend/common/variables_test.py