code: def testIfHasKeyLookup(self):
      m = map_ops.empty_tensor_map()
      k = constant_op.constant(1.0)
      k2 = constant_op.constant(2.0)
      v = constant_op.constant(2.0)
      m = map_ops.tensor_map_insert(m, k, v)
  
      default_value = array_ops.zeros_like(v)
      l = cond.cond(
          map_ops.tensor_map_has_key(m, k),
          lambda: map_ops.tensor_map_lookup(m, k, dtypes.float32),
          lambda: default_value,
      )
      l2 = cond.cond(
          map_ops.tensor_map_has_key(m, k2),
          lambda: map_ops.tensor_map_lookup(m, k, dtypes.float32),
          lambda: default_value,
      )
      self.assertAllClose(l, v)
      self.assertAllClose(l2, default_value)
  
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 10 for calling the MapOpsTest obj's underlying member method code with example usage: obj.testIfHasKeyLookup() without return types