code: def testTensorEquals(self):
      a = ragged_factory_ops.constant([[1, 2], [3]])
      b = ragged_factory_ops.constant([[4, 5], [3]])
      c = 2
      d = ragged_factory_ops.constant([[4, 5], [3, 2, 1]])
  
      if tf2.enabled() and ops.executing_eagerly_outside_functions():
          # Value-based equality:
          self.assertAllEqual(
              math_ops.tensor_equals(a, b), [[False, False], [True]]
          )
          self.assertAllEqual(
              math_ops.tensor_not_equals(a, b), [[True, True], [False]]
          )
  
          # Value-based equality (w/ broadcasting):
          self.assertAllEqual(
              math_ops.tensor_equals(a, c), [[False, True], [False]]
          )
          self.assertAllEqual(
              math_ops.tensor_not_equals(a, c), [[True, False], [True]]
          )
          self.assertFalse(
              math_ops.tensor_equals(a, d),
              msg="not broadcast-compatible",
          )
          self.assertTrue(
              math_ops.tensor_not_equals(a, d),
              msg="not broadcast-compatible",
          )
      else:
          # Identity-based equality:
          self.assertAllEqual(math_ops.tensor_equals(a, a), True)
          self.assertAllEqual(math_ops.tensor_equals(a, b), False)
          self.assertAllEqual(math_ops.tensor_not_equals(a, b), True)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python import tf2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.ops import image_ops_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_impl
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.ragged import ragged_dispatch
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged import ragged_tensor_test_ops
  from tensorflow.python.ops.ragged.dynamic_ragged_shape import DynamicRaggedShape
  from tensorflow.python.platform import googletest
  from tensorflow.python.util import dispatch
  from tensorflow.python.util import nest
label_desc: Use image node_id 13 for calling the RaggedDispatchTest obj's underlying member method code with example usage: obj.testTensorEquals() without return types