code: def testTensorMapHasKey(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)
      # Check has key.
      b = map_ops.tensor_map_has_key(m, k)
      b2 = map_ops.tensor_map_has_key(m, k2)
      self.assertAllEqual(b, True)
      self.assertAllEqual(b2, False)
  
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 9 for calling the MapOpsTest obj's underlying member method code with example usage: obj.testTensorMapHasKey() without return types