code: def testStructRefChecksSubkey(self):
      tensor = tf.constant(
          [1.0, 2.0, 3.0], dtype=tf.float32, name="alice"
      )
      ref1 = cache_util.WeakStructRef(tensor, subkey="a")
      ref2 = cache_util.WeakStructRef(tensor, subkey="b")
      self.assertNotEqual(ref1, ref2)
      self.assertNotEqual(hash(ref1), hash(ref2))
  
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 2 for calling the HashableRefTest obj's underlying member method code with example usage: obj.testStructRefChecksSubkey() without return types