code: def testEqualityOperators(self):
      a = ragged_factory_ops.constant([[1, 2], [3]])
      b = ragged_factory_ops.constant([[4, 5], [3]])
      c = 2
  
      if tf2.enabled() and ops.executing_eagerly_outside_functions():
          # Value-based equality:
          self.assertAllEqual(a == b, [[False, False], [True]])
          self.assertAllEqual(a != b, [[True, True], [False]])
  
          # Value-based equality (w/ broadcasting):
          self.assertAllEqual(a == c, [[False, True], [False]])
          self.assertAllEqual(a != c, [[True, False], [True]])
      else:
          # Identity-based equality:
          self.assertAllEqual(a == b, False)
          self.assertAllEqual(a != b, True)
  
file_path: tensorflow-upstream/tensorflow/python/ops/ragged/ragged_operators_test.py
imports: from tensorflow.python import tf2
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the RaggedElementwiseOpsTest obj's underlying member method code with example usage: obj.testEqualityOperators() without return types