code: def testOperatorOverride(self):
      v = self.create_variable(7)
      self.assertEqual(v + 1, 8)
      self.assertEqual(3 + v, 10)
      self.assertEqual(v + v, 14)
      self.assertEqual(v - 2, 5)
      self.assertEqual(13 - v, 6)
      self.assertEqual(v - v, 0)
      self.assertEqual(v * 2, 14)
      self.assertEqual(3 * v, 21)
      self.assertEqual(v * v, 49)
      self.assertEqual(v / 2, 3.5)
      self.assertEqual(14 / v, 2.0)
      self.assertEqual(v // 2, 3)
      self.assertEqual(15 // v, 2)
      self.assertEqual(v % 2, 1)
      self.assertEqual(16 % v, 2)
      # pylint: disable=g-generic-assert
      self.assertTrue(v < 12)
      self.assertTrue(v <= 12)
      self.assertFalse(v > 12)
      self.assertFalse(v >= 12)
      self.assertFalse(12 < v)
      self.assertFalse(12 <= v)
      self.assertTrue(12 > v)
      self.assertTrue(12 >= v)
      # pylint: enable=g-generic-assert
      self.assertEqual(v & 3, 3)
      self.assertEqual(11 & v, 3)
      self.assertEqual(v | 8, 15)
      self.assertEqual(16 | v, 23)
      self.assertEqual(v ^ 3, 4)
      self.assertEqual(11 ^ v, 12)
      self.assertEqual(pow(v, 3), 343)
      # TODO(b/178748613): pow(v, 3, 10) fails.
      self.assertEqual(pow(2, v), 128)
      self.assertEqual(-v, -7)
      self.assertEqual(~v, ~7)
      self.assertEqual(abs(v), 7)
  
imports: from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.distribute import test_util
  from tensorflow.python.distribute import values_v2
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
label_desc: Use image node_id 27 for calling the _VariableInterfaceTestBase obj's underlying member method code with example usage: obj.testOperatorOverride() without return types