code: def test_unbound_instance_cache(self):
      class TestClass(object):
          def method(self):
              pass
  
      c = cache.UnboundInstanceCache()
  
      o1 = TestClass()
      dummy = object()
  
      c[o1.method][1] = dummy
  
      self.assertTrue(c.has(o1.method, 1))
      self.assertFalse(c.has(o1.method, 2))
      self.assertIs(c[o1.method][1], dummy)
      self.assertEqual(len(c), 1)
  
      o2 = TestClass()
  
      self.assertTrue(c.has(o2.method, 1))
      self.assertIs(c[o2.method][1], dummy)
      self.assertEqual(len(c), 1)
  
imports: import unittest
  from nvidia.dali._autograph.pyct import cache
label_desc: Use image node_id 2 for calling the CacheTest obj's underlying member method code with example usage: obj.test_unbound_instance_cache() without return types