code: def testDiffKeySameValueGrad(self):
      with backprop.GradientTape(persistent=True) as tape:
          m = map_ops.empty_tensor_map()
          k = constant_op.constant(1.0)
          k2 = constant_op.constant(11.0)
          v = constant_op.constant(2.0)
          v2 = constant_op.constant(22.0)
          tape.watch(v)
          tape.watch(v2)
          m = map_ops.tensor_map_insert(m, k, v)
          m = map_ops.tensor_map_insert(m, k2, v)
          l = map_ops.tensor_map_lookup(m, k, v.dtype)
          l2 = map_ops.tensor_map_lookup(m, k2, v.dtype)
          g = tape.gradient(l + l2, v)
          self.assertAllEqual(g, 2)
          m = map_ops.tensor_map_insert(m, k2, v2)
          l2 = map_ops.tensor_map_lookup(m, k2, v2.dtype)
          g2 = tape.gradient(l + l2, v2)
          self.assertAllEqual(g2, 1)
      del tape
  
imports: from absl.testing import parameterized
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import map_ops
  from tensorflow.python.ops import sort_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 19 for calling the MapOpsTest obj's underlying member method code with example usage: obj.testDiffKeySameValueGrad() without return types