code: def testWeakStructRespectsContainerTypes(self):
      a = tf.constant(1.0, name="alice")
      b = tf.constant(2.0, name="bob")
      # Different lists are equal.
      self.assertEqual(
          cache_util.WeakStructRef([a, b]),
          cache_util.WeakStructRef([a, b]),
      )
      # List and tuple with same contents are not equal.
      self.assertNotEqual(
          cache_util.WeakStructRef([a, b]),
          cache_util.WeakStructRef((a, b)),
      )
  
imports: from absl.testing import parameterized
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import cache_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 5 for calling the HashableRefTest obj's underlying member method code with example usage: obj.testWeakStructRespectsContainerTypes() without return types