code: def testKwargsDictOrder(self):
      miss_id = 0
  
      class WRKey:
          pass
  
      def CacheFn(obj, kwkey1, kwkey2):
          del obj, kwkey1, kwkey2
          nonlocal miss_id
          miss_id += 1
          return miss_id
  
      cache = xla_client.weakref_lru_cache(lambda: None, CacheFn, 4)
  
      wrkey = WRKey()
  
      self.assertEqual(cache(wrkey, kwkey1="a", kwkey2="b"), 1)
      self.assertEqual(cache(wrkey, kwkey1="b", kwkey2="a"), 2)
      self.assertEqual(cache(wrkey, kwkey2="b", kwkey1="a"), 1)
  
file_path: tensorflow/third_party/xla/xla/python/weakref_lru_cache_test.py
imports: import threading
  import time
  from absl.testing import absltest
  from xla.python import xla_client
label_desc: Use image node_id 2 for calling the WeakrefLRUCacheTest obj's underlying member method code with example usage: obj.testKwargsDictOrder() and returns: miss_id