code: def assertAllEqual(self, rt, expected):
      with self.cached_session() as sess:
          value = sess.run(rt)
          if isinstance(value, np.ndarray):
              value = value.tolist()
          elif isinstance(value, ragged_tensor_value.RaggedTensorValue):
              value = value.to_list()
          self.assertEqual(value, expected)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_string_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged import ragged_tensor_value
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the UnicodeEncodeOpTest obj's underlying member method code with example usage: obj.assertAllEqual(rt, expected) without return types