code: def testUpdate(self):
      cache = de_nb_cache.DynamicEmbeddingNeighborCache(
          "nb_cache", self._config, service_address=self._kbs_address
      )
      update_res = cache.update(
          ["first", "second", ""],
          tf.constant([[2.0, 4.0], [4.0, 8.0], [8.0, 16.0]]),
      )
      self.assertAllClose(update_res.numpy(), [[2, 4], [4, 8], [0, 0]])
  
      embedding = cache.lookup(["first", "second", ""])
      self.assertAllClose(embedding.numpy(), [[2, 4], [4, 8], [0, 0]])
  
file_path: neural-structured-learning/research/carls/dynamic_embedding_neighbor_cache_test.py
imports: from research.carls import context
  from research.carls import dynamic_embedding_neighbor_cache
  from research.carls.testing import test_util
  import tensorflow
label_desc: Use image node_id 4 for calling the DynamicEmbeddingNeighborCacheTest obj's underlying member method code with example usage: obj.testUpdate() without return types